Skip to content

Commit b6d0942

Browse files
committed
missing capture_parameters in instrumentation psycopg
1 parent 032d6c6 commit b6d0942

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
@@ -183,6 +183,7 @@ def _instrument(self, **kwargs: Any):
183183
enable_attribute_commenter = kwargs.get(
184184
"enable_attribute_commenter", False
185185
)
186+
capture_parameters = kwargs.get("capture_parameters", False)
186187
dbapi.wrap_connect(
187188
__name__,
188189
psycopg,
@@ -195,6 +196,7 @@ def _instrument(self, **kwargs: Any):
195196
enable_commenter=enable_sqlcommenter,
196197
commenter_options=commenter_options,
197198
enable_attribute_commenter=enable_attribute_commenter,
199+
capture_parameters=capture_parameters,
198200
)
199201

200202
dbapi.wrap_connect(
@@ -209,6 +211,7 @@ def _instrument(self, **kwargs: Any):
209211
enable_commenter=enable_sqlcommenter,
210212
commenter_options=commenter_options,
211213
enable_attribute_commenter=enable_attribute_commenter,
214+
capture_parameters=capture_parameters,
212215
)
213216
dbapi.wrap_connect(
214217
__name__,
@@ -222,6 +225,7 @@ def _instrument(self, **kwargs: Any):
222225
enable_commenter=enable_sqlcommenter,
223226
commenter_options=commenter_options,
224227
enable_attribute_commenter=enable_attribute_commenter,
228+
capture_parameters=capture_parameters,
225229
)
226230

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

0 commit comments

Comments
 (0)