Skip to content

Context manager monitor#2290

Merged
szokeasaurusrex merged 8 commits intomasterfrom
szokeasaurusrex/context-manager-montor
Aug 4, 2023
Merged

Context manager monitor#2290
szokeasaurusrex merged 8 commits intomasterfrom
szokeasaurusrex/context-manager-montor

Conversation

@szokeasaurusrex
Copy link
Member

@szokeasaurusrex szokeasaurusrex commented Aug 3, 2023

The monitor decorator can now also be used as a context manager (with the with statement). This PR implements #2273.

@szokeasaurusrex szokeasaurusrex marked this pull request as ready for review August 3, 2023 14:52
Copy link
Contributor

@sentrivana sentrivana left a 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.

@sentrivana
Copy link
Contributor

We can also create the docs PR together tomorrow if you prefer.

@szokeasaurusrex szokeasaurusrex enabled auto-merge (squash) August 4, 2023 08:18
@szokeasaurusrex szokeasaurusrex merged commit 6d925c6 into master Aug 4, 2023
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/context-manager-montor branch August 4, 2023 08:23
@smeubank smeubank linked an issue Aug 7, 2023 that may be closed by this pull request
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.

Crons instrumentation with context manager

2 participants