Skip to content

Commit 0f9dd37

Browse files
committed
Set tracer in class definition to avoid lint error
1 parent 479e788 commit 0f9dd37

File tree

1 file changed

+1
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg

1 file changed

+1
-0
lines changed

instrumentation/opentelemetry-instrumentation-asyncpg/src/opentelemetry/instrumentation/asyncpg/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def _hydrate_span_from_args(connection, query, parameters) -> dict:
9898
class AsyncPGInstrumentor(BaseInstrumentor):
9999

100100
_leading_comment_remover = re.compile(r"^/\*.*?\*/")
101+
_tracer = None
101102

102103
def __init__(self, capture_parameters=False):
103104
super().__init__()

0 commit comments

Comments
 (0)