Skip to content

Conversation

sentrivana
Copy link
Contributor

@sentrivana sentrivana commented Mar 21, 2024

Relates #2812


General Notes

Thank you for contributing to sentry-python!

Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval. Some tests (AWS Lambda) additionally require a maintainer to add a special label to run and will fail if the label is not present.

For maintainers

Sensitive test suites require maintainer review to ensure that tests do not compromise our secrets. This review must be repeated after any code revisions.

Before running sensitive test suites, please carefully check the PR. Then, apply the Trigger: tests using secrets label. The label will be removed after any code changes to enforce our policy requiring maintainers to review all code revisions before running sensitive tests.

Comment on lines +124 to +128
scope = Scope.get_isolation_scope()
if scope.profile is not None:
scope.profile.active_thread_id = (
threading.current_thread().ident
)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this threading stuff go to the isolation scope? Or would current scope make more sense?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess isolation scope is fine. Other integrations also do it on the isolation scope (ex fastapi). One request will probably be handled by on thread in quart.

@sentrivana sentrivana merged commit 37adf4a into sentry-sdk-2.0 Mar 21, 2024
@sentrivana sentrivana deleted the ivana/2.0/quart-new-scopes branch March 21, 2024 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants