-
Notifications
You must be signed in to change notification settings - Fork 557
Context manager monitor #2290
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
Context manager monitor #2290
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job! You are now officially a decorator expert. 🎖️
I've left two comments, please have a look and address before merging.
Other than that, we also need to update the documentation, this page specifically. There's a Suggest an edit to this page link on the very bottom of each docs page that takes you to the source and allows you to directly create a PR to sentry-docs. Alternatively, you can clone https://github.com/getsentry/sentry-docs/, make the changes locally and create a PR as you would for this repo. Someone from our team should then have a look as well as a member of the docs team.
We can also create the docs PR together tomorrow if you prefer. |
The
monitor
decorator can now also be used as a context manager (with thewith
statement). This PR implements #2273.