Replies: 1 comment
-
If you use the global scope you need to clean it up, yes. If you use a more narrow scope, for example with |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm capturing screenshots to send to Sentry to help debug page errors (e.g., when a page times out because it can't find a selector). Here's a sample of my implementation:
The issue I'm encountering is that the attachments are being associated with all subsequent events unless I call
Sentry.getGlobalScope().clearAttachments()
right afterSentry.captureException(error)
.Question: Is there a better way to handle this, or is manually clearing the attachments after every capture the recommended approach?
Beta Was this translation helpful? Give feedback.
All reactions