Closed (fixed)
Project:
Raven: Sentry Integration
Version:
7.x-dev
Component:
Documentation
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2026 at 13:52 UTC
Updated:
31 Jan 2026 at 05:14 UTC
Jump to comment: Most recent
Comments
Comment #2
mfbYou should not need a feature to provide this logic. Add an event listener for the
\Drupal\raven\Event\OptionsAlterevent, and set thebefore_sendcallback option to a function containing whatever logic you need:Comment #3
mfbOne thing to keep in mind is that drush commands might also run as the anonymous user.
Comment #4
tikaszvince commentedsomething like this?
Comment #5
mfbI typically put logic in the before_send callback itself so it is checked at the last minute, i.e. current maintenance mode, current route, current user, etc.
And, check how logging from drush commands or other CLI scripts is disrupted.
Comment #6
tikaszvince commentedOk, thank you the tip.
I close this
Comment #8
mfbLet's keep this open for documentation improvements
Comment #10
mfb