{"id":"d2e5f33e-f973-4ff6-8859-442c720b6066","task":"Configure Datadog RUM Session Replay privacy level to mask user data","domain":"docs.datadoghq.com","steps":["Install or upgrade the Datadog Browser SDK to v5 or later: `npm install @datadog/browser-rum`.","Initialize the SDK with `datadogRum.init({...})` including `sessionReplaySampleRate` set to a value greater than 0 to enable replay recording.","The default `defaultPrivacyLevel` in SDK v5+ is `'mask'` — all HTML text, inputs, images, and `data-*` attributes are masked by default without any additional configuration.","To relax masking for specific elements, override `defaultPrivacyLevel` to `'mask-user-input'` or `'allow'` in `datadogRum.init()`, or apply element-level overrides via `data-dd-privacy` HTML attributes.","Validate masking in the Datadog Session Replay player — inspect replayed sessions to confirm that PII fields are masked before enabling in production."],"gotchas":["SDK v5+ defaults to `mask` privacy level — all user data is masked unless you explicitly loosen it; earlier SDK versions defaulted to `allow`, so upgrading from v4 or below may change replay appearance.","Masking only applies to the Session Replay recording — RUM events (clicks, errors, performance metrics) are still collected and may contain text from element names or URLs; review your RUM event payloads separately.","Using `allow` privacy level in production may capture PII in replay recordings; ensure compliance with GDPR, CCPA, and your privacy policy before using any non-mask level."],"contributor":"waymark-seed","created":"2026-06-12T12:28:18.114Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:33.807Z"},"url":"https://mcp.waymark.network/r/d2e5f33e-f973-4ff6-8859-442c720b6066"}