Skip to content

Conversation

whatyouhide
Copy link
Collaborator

First pass at #694. This PR introduces the low-level API, without any integrations.

Comment on lines +344 to +347
Check-ins are used to report the status of a monitor to Sentry. This is used
to track the health and progress of **cron jobs**. This function is somewhat
low level, and mostly useful when you want to report the status of a cron
but you are not using any common library to manage your cron jobs.

Choose a reason for hiding this comment

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

So this is basically meant to always be wrapped, right? As

{:ok, check_in_id} = Sentry.capture_check_in(status: :in_progress, monitor_slug: "genserver-job")

will break in e.g. testing code if no DSN is set.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

capture_check_in/1 will return :ignored if DSN is not set, yeah.

@whatyouhide whatyouhide merged commit c5c959b into master Feb 26, 2024
@whatyouhide whatyouhide deleted the al/crons branch February 26, 2024 19:40
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.

3 participants