fix(auto-instrumentation): print debug startup messages#4542
Open
pmcollins wants to merge 7 commits intoopen-telemetry:mainfrom
Open
fix(auto-instrumentation): print debug startup messages#4542pmcollins wants to merge 7 commits intoopen-telemetry:mainfrom
pmcollins wants to merge 7 commits intoopen-telemetry:mainfrom
Conversation
13ef6f1 to
4e5b680
Compare
herin049
reviewed
May 7, 2026
8191a08 to
eb2baa5
Compare
herin049
approved these changes
May 7, 2026
6a8306d to
172ab96
Compare
herin049
approved these changes
May 8, 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
Writes auto-instrumentation startup debug messages to stderr when
OTEL_LOG_LEVEL=debugorOTEL_LOG_LEVEL=traceis set. This makes it easier to see which distro and instrumentors were loaded duringopentelemetry-instrumentstartup.If Python logging is already configured to handle these debug messages, the new stderr output is suppressed to avoid double logging.
Fixes #4540
Type of change
How Has This Been Tested?
python -m unittest opentelemetry-python-contrib/opentelemetry-instrumentation/tests/auto_instrumentation/test_load.pyoteltestwith local packages and confirmed the expected stderr debug messagesDoes This PR Require a Core Repo Change?
Checklist: