msp: add infra and runtime support for job checkins#62508
Conversation
ca3dbd3 to
7166875
Compare
rafax
left a comment
There was a problem hiding this comment.
Looks reasonable, but I'm not the expert on msp
| OpenTelemetry opentelemetry.Config | ||
| sentryDSN *string | ||
|
|
||
| cronSchedule *string |
There was a problem hiding this comment.
Is schedule really optional? Is there a default?
There was a problem hiding this comment.
It's optional in the sense that only jobs, and only jobs that have a schedule configured at all (provisioning job + other MSP resources, and then DIY-ing the trigger is an option)
There was a problem hiding this comment.
Ok fair, didn't notice this is shared between services and jobs
There was a problem hiding this comment.
Added docstrings to clarify :)
There was a problem hiding this comment.
----- Split of topic -----
It's kinda surpising to see cron schedule is part of "diagnostics"? 🤔 or is it for exposing the cron schedule for diagnostics?
There was a problem hiding this comment.
Yeah it's only exposing the cron schedule for diagnostics, we don't (can't) actually apply the cron schedule from the runtime
| OpenTelemetry opentelemetry.Config | ||
| sentryDSN *string | ||
|
|
||
| cronSchedule *string |
There was a problem hiding this comment.
----- Split of topic -----
It's kinda surpising to see cron schedule is part of "diagnostics"? 🤔 or is it for exposing the cron schedule for diagnostics?
Co-authored-by: Joe Chen <joe@sourcegraph.com>
Closes CORE-21 - allows jobs to register check-ins using Sentry when they are configured as cron jobs: https://docs.sentry.io/product/crons/, for a nice view of "is my job running or nah" without using GCP's less-than-beautiful console views
Test plan
In Slack:
It appears the message is not currently customizable: https://develop.sentry.dev/sdk/check-ins/