diff --git a/docs/platforms/elixir/integrations/oban/index.mdx b/docs/platforms/elixir/integrations/oban/index.mdx index daad53002a50c2..1f652f90f45217 100644 --- a/docs/platforms/elixir/integrations/oban/index.mdx +++ b/docs/platforms/elixir/integrations/oban/index.mdx @@ -56,3 +56,27 @@ You can use this for more complex filtering logic based on number of attempts an See the documentation for event callbacks. + +### Customizing Job Check-In Information + +If you want to customize the information that is sent to Sentry when a job checks in, you can do so by providing a function that takes the job and returns a map of metadata. + +```elixir {filename:lib/my_app/my_worker.ex} +defmodule MyApp.MyWorker do + use Oban.Worker + + @behaviour Sentry.Integrations.Oban.Cron + + @impl Oban.Worker + def perform(args) do + # ... + end + + @impl Sentry.Integrations.Oban.Cron + def sentry_check_in_configuration(job) do + [monitor_slug: "custom-slug-#{job.id}"] + end +end +``` + +This is available since v10.9.0 of the SDK.