The Sentry SDK team is happy to announce the immediate availability of Sentry PHP SDK v4.5.0.
Features
-
Add
before_send_check_in
andbefore_send_metrics
(#1690)\Sentry\init([ 'before_send_check_in' => function (\Sentry\Event $event) { $checkIn = $event->getCheckIn(), // modify the check-in or return null to not send it }, ]);
\Sentry\init([ 'before_send_metrics' => function (\Sentry\Event $event) { $metrics = $event->getMetrics(), // modify the metrics or return null to not send it }, ]);