-
Notifications
You must be signed in to change notification settings - Fork 58
Open
Description
I do have application which uses postgress as DB connected via psyscopg2 python client library. When the code is instrumented with below pseudo code
from opentracing_instrumentation.client_hooks._dbapi2 import ConnectionFactory,\
ConnectionWrapper
from opentracing_instrumentation.client_hooks.psycopg2 import Psycopg2CursorWrapper
.................
factory = ConnectionFactory(connect_func=psycopg2.connect,
module_name='psycopg2',
conn_wrapper_ctor=ConnectionWrapper,
cursor_wrapper=Psycopg2CursorWrapper)
conn = psycopg2.connect(
dbname=dbname,
user=username,
password=password,
host=host,
port=port,
cursor_factory=....,
connection_factory = factory
)
It is capturing the password as part of tag.
{
"key": "sql.conn",
"type": "string",
"value": "(('user=user1 password=password1 host=host1 port=5432 dbname=db1.',), {})"
}
Looking an example to instrument all postgresql calls without capturing sensitive information in the tags. Any configuration changes to be set, so that db related information's can be avoided as part of tag?
Metadata
Metadata
Assignees
Labels
No labels