Redaction

You decide what leaves your app. Rasputin hides values whose property names look like secrets, and extra names you pass in redactKeys. Skip files when you need to.

What we redact automatically

Values whose names are the secret itself are redacted at ingest before grouping or persistence, including password, cookie, authorization, secret, and similar. The SDK sends bounded raw values; it does not match process environment secrets locally. Matching is by property name only. Secret-shaped strings in messages or unnamed fields are not classified.

Hide extra fields

Add extra property names to executionRecorder.redactKeys. They are copied at init and sent with ingest batches. Matching is case-insensitive. Clients that omit redact_keys still get the default sensitive names. Use excludeSources to skip noisy files.

const { client, requestMiddleware, errorMiddleware } = RasputinInit({
  // ...required options
  executionRecorder: {
    redactKeys: ['customerEmail', 'ssn'],
    excludeSources: ['src/logger/**'],
  },
});

Skip files and functions

Put // @rasputin-ignore-file at the top of a file to skip instrumentation. Nothing in that file is recorded.

// @rasputin-ignore-file

export const readDatabaseUrl = () => process.env.DATABASE_URL;

To skip a folder or function without a comment, add a glob or pattern to executionRecorder.excludeSources.