Skip to content

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

Merged
HazAT merged 1 commit intomasterfrom
evanpurkhiser/fix-crons-do-not-send-monitor-config-when-unset
Apr 28, 2023
Merged

fix(crons): Do not send monitor_config when unset#2058
HazAT merged 1 commit intomasterfrom
evanpurkhiser/fix-crons-do-not-send-monitor-config-when-unset

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 a team, AbhiPrasad and antonpirker 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