diff --git a/docs/platforms/elixir/integrations/oban/index.mdx b/docs/platforms/elixir/integrations/oban/index.mdx index e000f35f4f9d8..eec0c5832ac3a 100644 --- a/docs/platforms/elixir/integrations/oban/index.mdx +++ b/docs/platforms/elixir/integrations/oban/index.mdx @@ -46,5 +46,13 @@ def before_send(event) do end ``` +The Oban job itself (an [`Oban.Job` struct](https://hexdocs.pm/oban/Oban.Job.html)) is also available inside the event's `:integration_meta` field, under: + +```elixir +event.integration_meta[:oban][:job] +``` + +You can use this for more complex filtering logic based on number of attempts and such. + See the documentation for event callbacks.