Skip to main content

How to search events on context or extra data?

Issue

I am adding custom context or extra data to my error events, and I want to search Issues or events by that information.

Applies To

  • All SaaS Customers and Self-Hosted Users

  • Custom Context

  • Extra Data

  • Search

Resolution

You cannot search events or Issues by custom context or extra data. Those fields are not indexed.

Custom context and extra data still appear on the Issue Details page for the event you are viewing. They help with debugging. They do not power Issues search, Discover filters, or other search-based workflows. For how Sentry classifies this data, see Event Data.

What you can search:

  • Custom tags

  • Predefined structured fields such as release, environment, and user context attributes

For the full list of searchable fields, see searchable properties.

If you need to search or filter on a value that you currently store in context or extra:

  1. Send that value as a custom tag from your SDK. See Customize Tags for your platform.

  2. Open Issues (or another search surface that supports event tags).

  3. Search with the tag key and value, for example page_locale:de-at.

    Sentry.setTag("page_locale", "de-at");

Tag keys and values are strings. Keep keys and values within the limits described in the tags documentation for your SDK. Use tags for values you need to query across events. Keep richer, non-searchable detail in context or extra.

Did this answer your question?