Skip to content

/

Engineering

Redacting PII before it leaves your server

Redaction rules run in the SDK, so sensitive fields never reach our servers.

T

Tomás Reyes

6 min

Chart illustration for redacting pii before it leaves your server

The safest data is data you never send. The SDK applies your redaction rules before a span leaves the process.

tracewell.init({ redact: ['email', 'card', /\\b\\d{3}-\\d{2}-\\d{4}\\b/] })
tracewell.init({ redact: ['email', 'card', /\\b\\d{3}-\\d{2}-\\d{4}\\b/] })
tracewell.init({ redact: ['email', 'card', /\\b\\d{3}-\\d{2}-\\d{4}\\b/] })

Test your rules

The console shows a redaction preview on any run, so you can see what would have been stored.

Create a free website with Framer, the website builder loved by startups, designers and agencies.