Skip to content

Commit 07bb275

Browse files
committed
missing capture_parameters in instrumentation psycopg
1 parent 60a670f commit 07bb275

File tree

1 file changed

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

1 file changed

+4
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def _instrument(self, **kwargs: Any):
184184
enable_attribute_commenter = kwargs.get(
185185
"enable_attribute_commenter", False
186186
)
187+
capture_parameters = kwargs.get("capture_parameters", False)
187188
dbapi.wrap_connect(
188189
__name__,
189190
psycopg,
@@ -196,6 +197,7 @@ def _instrument(self, **kwargs: Any):
196197
enable_commenter=enable_sqlcommenter,
197198
commenter_options=commenter_options,
198199
enable_attribute_commenter=enable_attribute_commenter,
200+
capture_parameters=capture_parameters,
199201
)
200202

201203
dbapi.wrap_connect(
@@ -210,6 +212,7 @@ def _instrument(self, **kwargs: Any):
210212
enable_commenter=enable_sqlcommenter,
211213
commenter_options=commenter_options,
212214
enable_attribute_commenter=enable_attribute_commenter,
215+
capture_parameters=capture_parameters,
213216
)
214217
dbapi.wrap_connect(
215218
__name__,
@@ -223,6 +226,7 @@ def _instrument(self, **kwargs: Any):
223226
enable_commenter=enable_sqlcommenter,
224227
commenter_options=commenter_options,
225228
enable_attribute_commenter=enable_attribute_commenter,
229+
capture_parameters=capture_parameters,
226230
)
227231

228232
def _uninstrument(self, **kwargs: Any):

0 commit comments

Comments
 (0)