Python: Add observability unit tests to improve coverage#3469
Merged
giles17 merged 4 commits intomicrosoft:mainfrom Jan 29, 2026
Merged
Python: Add observability unit tests to improve coverage#3469giles17 merged 4 commits intomicrosoft:mainfrom
giles17 merged 4 commits intomicrosoft:mainfrom
Conversation
Member
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request adds comprehensive unit tests for the observability module to improve test coverage from 72% to 86%, addressing issue #3356. The new tests cover a wide range of observability functionality including OTel attributes, metric views, instrumentation decorators, span creation, exception handling, and various utility functions.
Changes:
- Added 1,169 lines of new test code covering observability features
- Tests include coverage for agent instrumentation, chat client telemetry, workflow spans, and configuration
- Tests for both enabled and disabled instrumentation scenarios
moonbox3
approved these changes
Jan 28, 2026
TaoChenOSU
approved these changes
Jan 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation and Context
Addresses #3356 - improving unit test coverage for the core observability module.
Description
Adds unit tests for observability module. Coverage: 72% to 86%.
Contribution Checklist