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
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-django/src/opentelemetry/instrumentation/django/middleware/sqlcommenter_middleware.py
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-sqlalchemy/src/opentelemetry/instrumentation/sqlalchemy/engine.py
+3
Original file line number
Diff line number
Diff line change
@@ -274,6 +274,9 @@ def _before_cur_exec(
274
274
commenter_data=self._get_commenter_data(conn)
275
275
276
276
ifself.enable_attribute_commenter:
277
+
# just to handle type safety
278
+
statement=str(statement)
279
+
277
280
# sqlcomment is added to executed query and db.statement span attribute
0 commit comments