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

Use scope() instead of sentryScope directly when adding breadcrumbs. #44

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

rstcruzo
Copy link
Contributor

@rstcruzo rstcruzo commented Dec 15, 2023

I'd love to be able to use sentry.configureScope normally and have breadcrumbs enabled. Right now it isn't possible because breadcrumbs require a "special" sentry scope to be set in zap fields (log.With(zapsentry.NewScope())), and configureScope does not configure that scope so, for instance, the tags set are not sent to sentry.

Using scope() instead of sentryScope directly fixes this. Now, we can just use a regular sentry scope and configureScope will work.

@TheZeroSlave
Copy link
Owner

hi, thnx!

@TheZeroSlave TheZeroSlave merged commit 309e5eb into TheZeroSlave:master Dec 16, 2023
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

Successfully merging this pull request may close these issues.

2 participants