You can use the Rules tab within the Project Settings to add additional constraints to limit when notifications are sent, such a rule for when an event’s
environment attribute equals
production. These rules will be applied for notifications for all users, though — there’s no way to add any per-user filters. There are also some other caveats here: for example, the “first seen” condition applies to all environments — there’s no way send a notification when an event occurs for the first time in a specific environment.
We’re working on making “environment” a first-class concept on many parts of the application, including notifications, so more environment-based control over these notifications will likely be available in the future.
In the meantime, some users decide to split out their application’s production and staging environments into two separate projects, changing the DSN accordingly in their configuration files. This isn’t an ideal situation, but might work for you until there’s better environment support.