How to filter issues by environment in Sentry

Learn how to filter the Sentry issue feed by environment using the All Envs selector, so you can see only staging issues and triage them separately.

Quick answer

To filter Sentry issues by environment, open the All Envs selector at the top of the issue feed, choose staging from the Filter Environments list, and wait for the feed to reload. The list then shows only issues with events from that environment, so you can triage staging errors separately from production.

Steps at a glance

  1. Open the Issues feed.
  2. Click the All Envs selector at the top.
  3. Choose staging from the Filter Environments list.
  4. Wait for the feed to reload.
  5. Review the issues that remain.

Interactive demo

Loading demo…

Summary

The environment selector narrows the Sentry issue feed to events from a single environment, such as staging or production. It keeps pre-release noise out of your production triage and the other way around.

Step-by-step guide

  1. Step 1

    Open the environment selector

    Go to the Issues feed. Near the top, next to All Projects and 14D, click the All Envs button. A dropdown opens with a Filter Environments search box.

  2. Step 2

    Pick staging

    The dropdown lists each environment that has sent events, here production and staging. Click staging to select it. The menu closes and the feed starts reloading.

  3. Step 3

    Review the staging-only issues

    The selector now reads staging, and the feed shows only issues with staging events. The event and user counts update to match, and the pager shows how many issues remain.

Why this matters

You are about to ship a release and want to know which errors are coming from staging, not production. Filtering by environment shows only those issues, so you can fix pre-release problems before real users hit them.

Frequently asked questions

  • Do event counts change when I filter by environment?

    Yes. After selecting staging, the Events and Users columns showed lower numbers, because they count only events from that environment.

  • How do I get back to all environments?

    Open the selector again and clear your selection, so the button reads All Envs.

Create interactive demos like this one — free, no coding required.

Start for free →