Live Debugger captures the full runtime state of a non-breaking breakpoint, including variable values that your application is processing at that moment. Some of those values—passwords, tokens, API keys, email addresses, or payment data—should never be exposed to the person debugging.
Sensitive data masking rules let you declare which values
Live Debugger must not collect. Matching values are replaced before the snapshot is created.
Masking is performed by OneAgent on your own host. Values that match a masking rule never leave your server or network, so they are not transmitted to or stored by Dynatrace.
A masking rule has three parts: what it matches, how it matches, and what it replaces the value with.
| Rule type | What it matches |
|---|---|
Redact by variable name | The name of the variable. When a variable name matches, its entire value is redacted, whatever that value contains. |
Redact by regex | The variable value. Any part of a value that matches the regular expression is redacted. |
The two rule types identify data differently: a name-based rule redacts a value because of what the variable is called, and a regex rule redacts it because of what the value contains. Use a regex rule when the data you need to protect is recognizable by its format rather than by a variable name.
For a Redact by variable name rule, choose how the name is compared:
foo matches only foo.foo matches myfoobar and foo123.foo matches foobar and foo123.foo matches myfoo and barfoo.Redacted data is replaced with \*\*\* by default.
You can set a different replacement for each rule:
secretKey with the replacement REDACTED turns secretKey:12345 into secretKey:REDACTED.Rules are evaluated in the order they appear on the Sensitive data masking page, and the first matching rule wins. You can reorder them.
Because OneAgent applies masking, redacted data never leaves your network and is never ingested or stored in Dynatrace. A value that matches a rule is replaced in the snapshot itself rather than hidden when the snapshot is displayed.
Snapshot data that you retrieve with dtctl is redacted the same way it is in the
Live Debugger app.
This matters when an AI agent or an automated workflow reads snapshot data on your behalf: the agent receives the masked value, not the original.
payload is not redacted by a rule matching the name creditCard. Use a Redact by regex rule when the value format, not the name, is what identifies the data.
Live Debugger