@@ -78,6 +78,7 @@ 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 ,
8182 enable_attribute_commenter : bool = False ,
8283):
8384 """Integrate with DB API library.
@@ -96,6 +97,7 @@ def trace_integration(
9697 enable_commenter: Flag to enable/disable sqlcommenter.
9798 db_api_integration_factory: The `DatabaseApiIntegration` to use. If none is passed the
9899 default one is used.
100+ commenter_options: Configurations for tags to be appended at the sql query.
99101 enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` span attribute. Only available if enable_commenter=True.
100102 """
101103 wrap_connect (
@@ -109,6 +111,7 @@ def trace_integration(
109111 capture_parameters = capture_parameters ,
110112 enable_commenter = enable_commenter ,
111113 db_api_integration_factory = db_api_integration_factory ,
114+ commenter_options = commenter_options ,
112115 enable_attribute_commenter = enable_attribute_commenter ,
113116 )
114117
0 commit comments