-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Python: Add observability unit tests to improve coverage #3469
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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
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