What are you trying to achieve?
The trace DB spec mentions that the db.statement attribute value may be sanitized to exclude sensitive information but provides no example of such sanitization.
The aim of this issue is to add several examples of how we should sanitize database statements, e.g. INSERT INTO payment_cards (CC, EXP_DATE) values (?, ?) for SQL or HMSET cards cc ? exp_date ? for Redis.
Additional context.
See: open-telemetry/opentelemetry-java-instrumentation#1405
What are you trying to achieve?
The trace DB spec mentions that the
db.statementattribute valuemay be sanitized to exclude sensitive informationbut provides no example of such sanitization.The aim of this issue is to add several examples of how we should sanitize database statements, e.g.
INSERT INTO payment_cards (CC, EXP_DATE) values (?, ?)for SQL orHMSET cards cc ? exp_date ?for Redis.Additional context.
See: open-telemetry/opentelemetry-java-instrumentation#1405