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(crons): Fix KeyError in capture_checkin if SDK is not initialized #1982

Closed

Conversation

jsmitka
Copy link
Contributor

@jsmitka jsmitka commented Mar 30, 2023

When Sentry SDK was not initialized, any calls to capture_checkin() raised a KeyError. This made all calls to functions decorated with @sentry_sdk.monitor() fail, because capture_checkin() is always called within the decorator.

This caused trouble especially in local dev environments, which usually does not have Sentry integration enabled.

When Sentry SDK was not initialized, any calls to capture_checkin()
raised a KeyError. This made all calls to functions decorated with
@sentry_sdk.monitor() fail, because capture_checkin() is always called
within the decorator.
Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

lgtm

@antonpirker antonpirker enabled auto-merge (squash) April 17, 2023 07:46
@antonpirker
Copy link
Member

To fix the merge conflicts I had to create a new PR: #2073

Will close this one here (you will be set as author of the other one)

@antonpirker antonpirker closed this May 4, 2023
auto-merge was automatically disabled May 4, 2023 06:41

Pull request was closed

@jsmitka
Copy link
Contributor Author

jsmitka commented May 4, 2023

@antonpirker Hi, thanks for the update. I've noticed a change in the crons implementation, but didn't get to review it and update/close my PR. Thanks for the new PR!

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