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
Although psycopg2 uses dbapi, it does not instrument capture_parameters=True. It's therefore missing the ability for a user to enable/disable raw db.statement's.
For example, I would expect to apply the parameter similar to enable_commenter and see the raw db.statement:
BuffaloWill
changed the title
Implement sensitive data sanitization for psycopg2 instrumentation #1544
Implement sensitive data sanitization for psycopg2 instrumentation
Mar 30, 2023
Although psycopg2 uses dbapi, it does not instrument
capture_parameters=True
. It's therefore missing the ability for a user to enable/disable rawdb.statement
's.For example, I would expect to apply the parameter similar to
enable_commenter
and see the raw db.statement:In my testing, I am seeing db.statements sanitized by default.
I think this is the relevant code:
opentelemetry-python-contrib/instrumentation/opentelemetry-instrumentation-psycopg2/src/opentelemetry/instrumentation/psycopg2/__init__.py
Lines 143 to 154 in e4d8f10
The text was updated successfully, but these errors were encountered: