add commenter_options in trace_integration#3743
Merged
xrmx merged 4 commits intoopen-telemetry:mainfrom Oct 10, 2025
Merged
Conversation
instrumentation/opentelemetry-instrumentation-dbapi/tests/test_dbapi_integration.py
Show resolved
Hide resolved
Contributor
|
Hi @chloe-zh97 thanks for this. A few more requests:
|
0fcd925 to
edb34e6
Compare
Contributor
Author
Thanks, done. |
tammy-baylis-swi
approved these changes
Sep 10, 2025
Contributor
tammy-baylis-swi
left a comment
There was a problem hiding this comment.
Lgtm! The Maintainers will also have a look at this PR.
Contributor
Author
Okay, thank you! |
xrmx
reviewed
Sep 15, 2025
xrmx
reviewed
Sep 15, 2025
...tion/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi/__init__.py
Outdated
Show resolved
Hide resolved
eb3f469 to
b232b9a
Compare
Contributor
Author
|
Hi @xrmx, could you help review again, many thanks! |
Contributor
Author
|
Hi @karthikscale3 , @lzchen , @nirga , can you help review this PR? many thanks |
xrmx
approved these changes
Oct 10, 2025
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
This PR adds support for passing
commenter_optionsto thetrace_integrationfunction andDatabaseApiIntegrationin theopentelemetry-instrumentation-dbapipackage. This allows users to customize SQLCommenter behavior (for example, disablingopentelemetry_values) when instrumenting DB-API drivers.Fixes #3726
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
test_commenter_options_propagationandtest_trace_integration_passes_commenter_optionstox -e lintandpytest.tox -e rufffor code formattingDoes This PR Require a Core Repo Change?
Checklist:
See contributing.md for styleguide, changelog guidelines, and more.