We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7cbe586 commit 4ffd2daCopy full SHA for 4ffd2da
instrumentation/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi/__init__.py
@@ -423,7 +423,6 @@ def traced_execution(
423
with self._db_api_integration._tracer.start_as_current_span(
424
name, kind=SpanKind.CLIENT
425
) as span:
426
- self._populate_span(span, cursor, *args)
427
if args and self._commenter_enabled:
428
try:
429
args_list = list(args)
@@ -464,6 +463,9 @@ def traced_execution(
464
463
_logger.exception(
465
"Exception while generating sql comment: %s", exc
466
)
+
467
+ self._populate_span(span, cursor, *args)
468
469
return query_method(*args, **kwargs)
470
471
0 commit comments