Skip to main content

Why aren't inbound filters for error messages working for the title of my errors?

Issue

I want to know why an Error Message inbound filter based on the event title (from the event JSON or issue UI) does not drop matching errors.

Applies To

  • All SaaS Customers

  • Inbound Filters

  • Error Message filter

Symptoms

  • Synthetic errors are not filtered when you match on their title

  • The title string does not match {exception.type}: {exception.value}

Resolution

The Error Message filter matches {exception.type}: {exception.value} (or the formatted message for message events) when the event is ingested. It doesn’t match every string that appears in the issue title.

For synthetic exceptions, Sentry may generate the title from the function name in the top stack frame. That title isn’t what the Error Message filter uses. To check whether this is happening, look at the event JSON for exception.values[0].mechanism.synthetic set to true. If it is, filter using the exception type and/or value with a glob, such as *MyError*, rather than the synthetic title.

Also, keep in mind that filters run before symbolication and similar processing. So the filter needs to match the exception fields as they were ingested, not a title that gets rewritten later.

Did this answer your question?