Guides
Environments
Separate production, staging and preview telemetry and filter the dashboard by environment.
An environment identifies where your code runs (production, staging, preview). OpenPerf creates environments automatically as soon as telemetry arrives — telemetry without one is stored as default.
Set the environment
import { init } from "@openperf/sdk/browser";
init({
dsn: import.meta.env.VITE_OPENPERF_DSN,
environment: import.meta.env.MODE,
});Filtering & hiding
- Dashboard filters: use the Environment picker on Errors, Traces, Logs, Releases and performance screens, or type
environment:stagingin the search bar (see Filtering). - Hide noisy environments: open Settings → Environments to hide preview or local environments from the filter list. Hidden environments still ingest telemetry and remain searchable via
environment:<name>. - Alerts: alert rules can target a specific environment or watch all environments — see Alerts.