-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow postponing event captures until User Consent is collected #6758
Comments
@AbhiPrasad any notes on why we decided not to go ahead with this? |
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! |
Hi. What is expected way of handling user consent until this issue is resolved? Add |
@zemlanin Calling |
The offline transports have hooks that can allow you to queue events until user consent. |
@timfish What kind of offline transport hooks do you mean? I tried to find them in the docs but wasn't able to. |
Sorry, I was mistaken. I just checked the docs and it looks like the browser offline transport doesn't support the hooks required to delay sending events. It only has a The Electron offline transport has an additional |
@timfish No problem, I tried to read through the Electron offline transport code but can't figure out, wether/where the stored envelopes get flushed. Or does a falsy |
They get stored until another envelope is sent and There is also an option to attempt flushing shortly after startup. |
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.
The text was updated successfully, but these errors were encountered: