Skip to content

Commit

Permalink
feat(elixir): Add sentence about before_send_event returning nil (#…
Browse files Browse the repository at this point in the history
…1293)

getsentry/sentry-elixir#364 (which fixes getsentry/sentry-elixir#363) brings the Elixir SDK's `before_send_event` config option in line with other, similar config options (`beforeSend` and `before_send`) in the unified SDKs, in that it now recognizes a falsy return value as a signal to drop the event. This PR adds a sentence explaining that behavior to the Elixir config docs.
  • Loading branch information
lobsterkatie authored Oct 24, 2019
1 parent 5717ab8 commit 3d8a350
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/collections/_documentation/clients/elixir/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ The backend can also be configured to capture Logger metadata, which is detailed

`before_send_event`

: This option allows performing operations on the event before it is sent by `Sentry.Client`. Accepts an anonymous function or a {module, function} tuple, and the event will be passed as the only argument.
: This option allows performing operations on the event before it is sent by `Sentry.Client`. Accepts an anonymous function or a {module, function} tuple, and the event will be passed as the only argument. The function must return the modified event (or `nil` or `false` to prevent the event from being sent).

`after_send_event`

Expand Down

0 comments on commit 3d8a350

Please sign in to comment.