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-psycopg/src/opentelemetry/instrumentation/psycopg/__init__.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -205,6 +205,18 @@ def instrument_connection(
205
205
enable_commenter: bool=False,
206
206
commenter_options: dict=None,
207
207
):
208
+
"""Enable instrumentation of a Psycopg connection.
209
+
210
+
Args:
211
+
connection: The connection to instrument.
212
+
tracer_provider: Optional tracer provider to use. If omitted
213
+
the current globally configured one is used.
214
+
enable_commenter: Optional flag to enable/disable sqlcommenter (default disabled).
215
+
commenter_options: Optional configurations for tags to be appended at the sql query.
Copy file name to clipboardExpand all lines: instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/__init__.py
+12Lines changed: 12 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,18 @@ def instrument_connection(
169
169
enable_commenter: bool=False,
170
170
commenter_options: dict=None,
171
171
):
172
+
"""Enable instrumentation of a Psycopg2 connection.
173
+
174
+
Args:
175
+
connection: The connection to instrument.
176
+
tracer_provider: Optional tracer provider to use. If omitted
177
+
the current globally configured one is used.
178
+
enable_commenter: Optional flag to enable/disable sqlcommenter (default disabled).
179
+
commenter_options: Optional configurations for tags to be appended at the sql query.
0 commit comments