You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enable_commenter: Flag to enable/disable sqlcommenter.
234
235
db_api_integration_factory: The `DatabaseApiIntegration` to use. If none is passed the
235
236
default one is used.
236
-
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` span attribute. Only available if enable_commenter=True.
237
+
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` and/or `db.query.text` span attribute. Only available if enable_commenter=True.
237
238
commenter_options: Configurations for tags to be appended at the sql query.
238
239
"""
239
240
wrap_connect(
@@ -283,7 +284,7 @@ def wrap_connect(
283
284
db_api_integration_factory: The `DatabaseApiIntegration` to use. If none is passed the
284
285
default one is used.
285
286
commenter_options: Configurations for tags to be appended at the sql query.
286
-
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` span attribute. Only available if enable_commenter=True.
287
+
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` and/or `db.query.text` span attribute. Only available if enable_commenter=True.
287
288
288
289
"""
289
290
db_api_integration_factory= (
@@ -361,7 +362,7 @@ def instrument_connection(
361
362
enable_commenter: Flag to enable/disable sqlcommenter.
362
363
commenter_options: Configurations for tags to be appended at the sql query.
363
364
connect_module: Module name where connect method is available.
364
-
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` span attribute. Only available if enable_commenter=True.
365
+
enable_attribute_commenter: Flag to enable/disable sqlcomment inclusion in `db.statement` and/or `db.query.text` span attribute. Only available if enable_commenter=True.
365
366
db_api_integration_factory: A class or factory function to use as a
366
367
replacement for :class:`DatabaseApiIntegration`. Can be used to
367
368
obtain connection attributes from the connect method instead of
@@ -426,6 +427,15 @@ def __init__(
426
427
connect_module: Callable[..., Any] |None=None,
427
428
enable_attribute_commenter: bool=False,
428
429
):
430
+
# Initialize semantic conventions opt-in if needed
0 commit comments