Skip to content

DataCollection: Session Replay must not be gated by DataCollection (spec 0.10.0) #5852

Done
getsentry/sentry-docs
#20977

Description

@jamescrosswell

Part of #5420. Spec requirement added in dataCollection spec 0.10.0.

Session Replay is not gated by DataCollection (or by its predecessor SendDefaultPii). Replay has its own opt-in privacy model — by default it masks all text, images and user input — which is the opposite of the DataCollection opt-out model. Wiring the two together would flip privacy-sensitive defaults for existing Replay users and confuse which layer controls masking.

Per spec:

  • SDKs MUST NOT change what Session Replay captures based on DataCollection.
  • Replay's masking and network-capture behavior MUST remain controlled exclusively by the Replay integration's own privacy options.
  • SDK documentation SHOULD explicitly state that DataCollection does not affect Session Replay, so users are not surprised by the exception.

Work for .NET (we expose Replay via the native Android/Cocoa layers):

  • Confirm no DataCollection value is forwarded into native Replay options — relevant to DataCollection phase 2: propagate to native (Android/Cocoa) #5436, where we map the resolved config onto SentryObjCOptions / the Android options. Replay options (SessionReplay, SentryObjCReplayOptions) must be left untouched by that mapping.
  • Add a regression test locking the exclusion in, so a future broadening of the native mapping cannot silently change Replay masking.
  • Add the documentation note to the .NET Replay / data-management pages in getsentry/sentry-docs.

Spec: https://develop.sentry.dev/sdk/foundations/client/data-collection/

Activity

  1. added
    Feature
    on Nov 2, 2026
  2. linear-code commented on Nov 2, 2026

    @linear-code
  3. jamescrosswell commented on Nov 26, 2026

    @jamescrosswell
    CollaboratorAuthor

    The SDK side is done in #5960. DataCollection doesn't touch Session Replay on Android or iOS, and ApplyDataCollection_Configured_LeavesSessionReplayUntouched covers both. What's left is a docs note that DataCollection doesn't affect Replay, which fits with the docs work in #5851.

  4. added a commit that references this issue on Nov 30, 2026
    dac5f0d
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureState: Needs Discussion

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions