Skip to content

Allow postponing event captures until User Consent is collected #6758

Closed

Description

@bruno-garcia

Have the SDK operate ‘properly’, with it's configured features such as Replay. But ‘hold off’ on sending events until consent is given. If revoked stop events from being sent again.

Sentry Native already supports user consent (not for all backends though), we can borrow the idea and do something similar getsentry/sentry-native@a51ccbb/src/sentry_options.c#L276-L286

Relates to:

Specifically:

There's an internal doc that should be moved to GitHub.

Activity

  1. changed the title [-]Allow postponing event captures until _User Consent_ is collected[/-] [+]Allow postponing event captures until User Consent is collected[/+] on Jan 12, 2023
  2. bruno-garcia commented on Mar 30, 2023

    @bruno-garcia
    MemberAuthor

    @AbhiPrasad any notes on why we decided not to go ahead with this?

  3. AbhiPrasad commented on Mar 31, 2023

    @AbhiPrasad
    Contributor

    Nope, I think it just fell through the cracks. I moved it to Archived since it was a stale-bot closed issue. We can re-open and backlog!

  4. zemlanin commented on Jul 8, 2024

    @zemlanin

    Hi. What is expected way of handling user consent until this issue is resolved?

    Add <script>/call Sentry.init only after user has agreed to gathering analytics? Something else?

  5. 17 remaining items

  6. timfish commented on Feb 3, 2025

    @timfish
    Collaborator

    They get stored until another envelope is sent and shouldSend returns true. Once one envelope is sent successfully the rest are attempted.

    There is also an option to attempt flushing shortly after startup.

  7. moved this from Waiting for: Product Owner to No status in GitHub Issues with 👀 3on Feb 3, 2025
  8. assigned and unassigned on Mar 30, 2025
  9. github-actions commented on Apr 16, 2025

    @github-actions
    Contributor

    A PR closing this issue has just been released 🚀

    This issue was referenced by PR #15937, which was included in the 9.13.0 release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions