@@ -78,6 +78,7 @@ def trace_integration(
78
78
capture_parameters : bool = False ,
79
79
enable_commenter : bool = False ,
80
80
db_api_integration_factory : type [DatabaseApiIntegration ] | None = None ,
81
+ commenter_options : dict [str , Any ] | None = None ,
81
82
enable_attribute_commenter : bool = False ,
82
83
):
83
84
"""Integrate with DB API library.
@@ -96,6 +97,7 @@ def trace_integration(
96
97
enable_commenter: Flag to enable/disable sqlcommenter.
97
98
db_api_integration_factory: The `DatabaseApiIntegration` to use. If none is passed the
98
99
default one is used.
100
+ commenter_options: Configurations for tags to be appended at the sql query.
99
101
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` span attribute. Only available if enable_commenter=True.
100
102
"""
101
103
wrap_connect (
@@ -109,6 +111,7 @@ def trace_integration(
109
111
capture_parameters = capture_parameters ,
110
112
enable_commenter = enable_commenter ,
111
113
db_api_integration_factory = db_api_integration_factory ,
114
+ commenter_options = commenter_options ,
112
115
enable_attribute_commenter = enable_attribute_commenter ,
113
116
)
114
117
0 commit comments