- Issue created by @nicrodgers
- πΊπΈUnited States mfb San Francisco
I would suggest that we should add the uninterpolated message to the breadcrumb data, if it differs from the interpolated message.
- Status changed to Fixed
over 1 year ago 10:54am 23 November 2023 - π¬π§United Kingdom nicrodgers Monmouthshire, UK
Turns out this is already possible, I was doing it wrong.
We re-wrote hook_raven_filter_alter() as an event subscriber listening for onOptionsAlter, and within the handler we have to modify before_send
$alterEvent->options['before_send'] = function (Event $event): ? Event { if ($event->getLogger() === $channel && $event->getMessage() === '@type: updated %title.' )) { return NULL; } return $event; }
- πΊπΈUnited States mfb San Francisco
Yes, this allows you to filter log events by that message. However, it will not allow you to filter breadcrumbs by that message, which you mentioned in the original issue summary. If you also need to filter breadcrumbs then this should be reopened as a feature request.
Automatically closed - issue fixed for 2 weeks with no activity.