Skip to content

Commit e07b232

Browse files
committed
[#1353]fix dbapi connection instrument wrapper has no _sock member
1 parent 744851b commit e07b232

File tree

1 file changed

+4
-0
lines changed
  • instrumentation/opentelemetry-instrumentation-dbapi/src/opentelemetry/instrumentation/dbapi

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,10 @@ def get_traced_connection_proxy(
324324
# pylint: disable=abstract-method
325325
class TracedConnectionProxy(type(connection), _TracedConnectionProxy):
326326
def __init__(self, connection):
327+
self._sock = connection._sock
328+
self._auth_plugin_name = connection._auth_plugin_name
329+
self._closed = connection._closed
330+
self._secure = connection._secure
327331
self._connection = connection
328332

329333
def __getattr__(self, name):

0 commit comments

Comments
 (0)