Skip to content

Commit

Permalink
Document new feature to Elixir's Oban integration (#11123)
Browse files Browse the repository at this point in the history
  • Loading branch information
whatyouhide authored Aug 20, 2024
1 parent e85dab0 commit 1f3bd20
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/platforms/elixir/integrations/oban/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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 <Link to="/platforms/elixir/configuration/filtering">the documentation for event callbacks</Link>.
</Alert>

0 comments on commit 1f3bd20

Please sign in to comment.