Skip to content

fix: Clear breadcrumbs before new tx#297

Merged
untitaker merged 2 commits intomasterfrom
fix/clear-breadcrumbs
Mar 19, 2019
Merged

fix: Clear breadcrumbs before new tx#297
untitaker merged 2 commits intomasterfrom
fix/clear-breadcrumbs

Conversation

@untitaker
Copy link
Copy Markdown
Member

Fix #207

@untitaker untitaker merged commit c96119f into master Mar 19, 2019
@untitaker untitaker deleted the fix/clear-breadcrumbs branch March 19, 2019 22:21
dimrozakis added a commit to advantis-io/sentry-dramatiq that referenced this pull request Apr 13, 2020
During process startup, several things may get logged (for example by
imports) and subsequently get collected by sentry as breadcrumbs.
Since breadcrumbs are inherited in nested scopes, any task that raises a
sentry error will include breadcrumbs since the process started.

This commit ensures that each task's sentry scope is started without any
preexisting breadcrumbs. It adds a test that fails without the change
that clears the scope's breadcrumbs.

Related issue & PR in sentry's SDK:
- getsentry/sentry-python#207
- getsentry/sentry-python#297
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.

1 participant