19 Aug 2025 08:33 AM
When I open the Distributed Traces view, I can see the full SQL statements, for example:
I would like to mask or hide the entire SQL statement so that no one can see the actual query text.
Is there a way to completely disable SQL statement capture so Dynatrace doesn’t ingest them at all?
Alternatively, if SQL statements are ingested, can I mask or obfuscate them so they are not visible in the UI?
What is the recommended approach to achieve this?
19 Aug 2025 08:52 PM
There are different options:
Disabling OneAgent feature will work for Managed deployments and SaaS. While OpenPipeline only for SaaS (and new Distributed tracing app).
Anyway - Dynatrace does not capture any sensitive data unless you turn on SQL bind variables capture and those are displayed only for users view view sensitive data priviledge. Generally I would not recommend to remove the database spans or disable its capture.
20 Aug 2025 01:41 PM
actually the client i am working with is a bank. so their security team doesn't want us or anyone who has access to the dynatrace tenant , to see the schema of their database tables, so they want database statements to come inside the grail, but they want schema and values inside the distributed traces to be masked.