From 84d82d03c56f2691e02609e4a8e9111997561e01 Mon Sep 17 00:00:00 2001 From: tammy-baylis-swi Date: Thu, 2 Jan 2025 10:34:32 -0800 Subject: [PATCH] Fix --- .../src/opentelemetry/instrumentation/psycopg2/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/__init__.py b/instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/__init__.py index 262f639295..341ddb1b7d 100644 --- a/instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/__init__.py +++ b/instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/__init__.py @@ -178,6 +178,7 @@ def _uninstrument(self, **kwargs): dbapi.unwrap_connect(psycopg2, "connect") # TODO(owais): check if core dbapi can do this for all dbapi implementations e.g, pymysql and mysql + @staticmethod def instrument_connection( connection: pg_connection, tracer_provider: typing.Optional[trace_api.TracerProvider] = None,