Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Remove/anonymize query parameters in DB integrations #855

Closed
@aabmass

Description

@aabmass

The DB instrumentations are attaching a span attribute db.statement.parameters with the raw query parameters which may contain sensitive data. #854 solves this for asnycpg and a similar approach would be good for the other libraries.

I believe fixing the opentelemetry-ext-dbapi instrumentation would fix this for a few of them:

span.set_attribute("db.statement.parameters", str(args[1]))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions