Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: SentryEvent vs configureScope #284

Closed
mohammadne opened this issue Jan 26, 2021 · 1 comment
Closed

Question: SentryEvent vs configureScope #284

mohammadne opened this issue Jan 26, 2021 · 1 comment

Comments

@mohammadne
Copy link

hi,
I was studding sentry docs, but after that I can't figure out what is difference between SentryEvent and configureScope.

I hope you can clarify that,
thanks

@marandaneto
Copy link
Contributor

well, SentryEvent is the data class that represents the JSON object sent over to Sentry.
https://develop.sentry.dev/sdk/event-payloads/

configureScope is a method that allows you to mutate the current Scope.
https://develop.sentry.dev/sdk/unified-api/#scope

so let's say that you add a tag to the Scope using the configureScope method.
https://docs.sentry.io/platforms/dart/enriching-events/tags/

Every captured exception will append the Scope's tag to the raised SentryEvent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants