Skip to content

Context manager monitor - #2290

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

szokeasaurusrex merged 8 commits into
masterfrom
szokeasaurusrex/context-manager-montor

Conversation

@szokeasaurusrex

@szokeasaurusrex szokeasaurusrex commented Aug 3, 2023 •

Copy link
Copy Markdown
Member

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

@sentrivana sentrivana left a comment

Copy link
Copy Markdown
Collaborator

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.

Comment thread sentry_sdk/crons/decorator.py Resolved
Comment thread sentry_sdk/crons/decorator.py Resolved
@sentrivana

Copy link
Copy Markdown
Collaborator

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