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

Fix: SentryTransactionAdvice should operate on the new scope. #1389

Merged
merged 3 commits into from
Apr 12, 2021

Conversation

maciejwalkowiak
Copy link
Contributor

@maciejwalkowiak maciejwalkowiak commented Apr 9, 2021

📜 Description

Fix: SentryTransactionAdvice should operate on the new scope.

💡 Motivation and Context

@SentryTransaction is meant to be used for integrations that we do not support out of the box like messaging, scheduled jobs. These integrations work on thread pools, meaning if users modify the scope, without having push & pop scope changes would last also for further invocations happening on the same thread.

💚 How did you test it?

Unit tests.

📝 Checklist

  • I reviewed the submitted code
  • I added tests to verify the changes
  • I updated the docs if needed
  • No breaking changes

@marandaneto
Copy link
Contributor

@maciejwalkowiak changelog and mind updating the issue's description about why do we need that? I am fine with the changes but I don't know why its required to be in a new scope

@maciejwalkowiak
Copy link
Contributor Author

@marandaneto updated.

@maciejwalkowiak maciejwalkowiak merged commit 45fde47 into main Apr 12, 2021
@maciejwalkowiak maciejwalkowiak deleted the sentry-transaction-push-scope branch April 12, 2021 08:29
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