Skip to content

Commit 33735d6

Browse files
committed
adjust parameter
1 parent 5ca0694 commit 33735d6

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
5454
([#3734](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3734))
5555
- `opentelemetry-instrumentation`: botocore: upgrade moto package from 5.0.9 to 5.1.11
5656
([#3736](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3736))
57-
- `opentelemetry-instrumentation-dbapi`: Add support for `commenter_options` in `trace_integration` to control SQLCommenter behavior
57+
- `opentelemetry-instrumentation-dbapi`: Add support for `commenter_options` in `trace_integration` function to control SQLCommenter behavior
5858
([#3743](https://github.com/open-telemetry/opentelemetry-python-contrib/pull/3743))
5959

6060
## Version 1.36.0/0.57b0 (2025-07-29)

instrumentation/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi/__init__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ def trace_integration(
7878
capture_parameters: bool = False,
7979
enable_commenter: bool = False,
8080
db_api_integration_factory: type[DatabaseApiIntegration] | None = None,
81-
commenter_options: dict[str, Any] | None = None,
8281
enable_attribute_commenter: bool = False,
82+
commenter_options: dict[str, Any] | None = None,
8383
):
8484
"""Integrate with DB API library.
8585
https://www.python.org/dev/peps/pep-0249/
@@ -97,8 +97,8 @@ def trace_integration(
9797
enable_commenter: Flag to enable/disable sqlcommenter.
9898
db_api_integration_factory: The `DatabaseApiIntegration` to use. If none is passed the
9999
default one is used.
100-
commenter_options: Configurations for tags to be appended at the sql query.
101100
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` span attribute. Only available if enable_commenter=True.
101+
commenter_options: Configurations for tags to be appended at the sql query.
102102
"""
103103
wrap_connect(
104104
__name__,
@@ -111,8 +111,8 @@ def trace_integration(
111111
capture_parameters=capture_parameters,
112112
enable_commenter=enable_commenter,
113113
db_api_integration_factory=db_api_integration_factory,
114-
commenter_options=commenter_options,
115114
enable_attribute_commenter=enable_attribute_commenter,
115+
commenter_options=commenter_options,
116116
)
117117

118118

0 commit comments

Comments
 (0)