Open
Conversation
0d4c018 to
398fd3c
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Adds OpenTelemetry InstrumentationScope.name (logger name) into Azure Monitor log telemetry custom dimensions so that Message, Exception, and Event envelopes include source logger information (fixing #45914).
Changes:
- Populate
logger_namein log envelopepropertiesfromreadable_log_record.instrumentation_scope.name. - Update log exporter tests to include assertions for
logger_nameon Message/Exception scenarios and adjust test instrumentation scope names. - Document the new behavior in the package changelog.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| sdk/monitor/azure-monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/logs/_exporter.py | Adds instrumentation scope name into log envelope custom properties. |
| sdk/monitor/azure-monitor-opentelemetry-exporter/tests/logs/test_logs.py | Updates fixtures and adds assertions related to exported logger name. |
| sdk/monitor/azure-monitor-opentelemetry-exporter/CHANGELOG.md | Notes the new feature in the unreleased section. |
...monitor-opentelemetry-exporter/azure/monitor/opentelemetry/exporter/export/logs/_exporter.py
Outdated
Show resolved
Hide resolved
sdk/monitor/azure-monitor-opentelemetry-exporter/tests/logs/test_logs.py
Outdated
Show resolved
Hide resolved
39a91fd to
eddf4c4
Compare
eddf4c4 to
3dc4564
Compare
JacksonWeber
approved these changes
Apr 3, 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.
Description
Fixes - #45914. Adds the logger name to Message, Exception and Events telemetry.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines