Skip to content

fix(crons): Do not send monitor_config when unset #2058

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

Merged

Conversation

evanpurkhiser
Copy link
Member

@evanpurkhiser evanpurkhiser commented Apr 28, 2023

This fixes a regression introduced in 1.18 which caused monitor
check-ins without a monitor_config to be rejected by relay.

Fixes #2052

This fixes a regression introduced in 1.18 which caused monitor
check-ins without a `monitor_config` to be rejected by relay.
@evanpurkhiser evanpurkhiser requested review from antonpirker, AbhiPrasad and a team April 28, 2023 18:54
assert check_in["monitor_slug"] == "abc123"
assert check_in["monitor_config"] == monitor_config

# Without passing a monitor_config the field is not in the checkin
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the case that catches the regression

@HazAT HazAT enabled auto-merge (squash) April 28, 2023 18:56
@HazAT HazAT disabled auto-merge April 28, 2023 19:06
@HazAT HazAT merged commit 68c4d10 into master Apr 28, 2023
@HazAT HazAT deleted the evanpurkhiser/fix-crons-do-not-send-monitor-config-when-unset branch April 28, 2023 19:06
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.

Cron monitor check-in does not show up in UI when using sentry_sdk.monitor
2 participants