Closed
Description
We'd like to be able to skip capture globally based on configuration. It seems like we have a few paths to do that right now.
- Implement our own listener against the interface
- Extend the existing listener and just override
shouldExceptionCaptureBeSkipped
Both of these require writing a lot of boilerplate, would you be open to adding an autoconfigurable interface that would allow a service to respond to shouldExceptionCaptureBeSkipped
?
I also tried to listen to the pre-capture event and stop it with SentrySymfonyEvents::PRE_CAPTURE => 'onPreCapture'
public function onPreCapture(Event $event)
{
if (!$this->errorCaptureEnabled) {
$event->stopPropagation();
}
}
While that method does get called, stopPropagation
doesn't seem to stop the error from being sent to sentry.
Metadata
Metadata
Assignees
Labels
No labels