Skip to Content
OpenPerf

Docs

Quickstart

Create a project, add the SDK and see your first error in the dashboard.

This guide connects a Browser, Node.js (24.11.1+) or Bun app using @openperf/sdk. For full platform guides, API reference and CLI docs, switch to the SDK tab. Apps in other languages send telemetry over OpenTelemetry.

Create a project

The first time you sign in, OpenPerf asks you to create an organization and then your first project. Later you add projects under Settings → Projects → New project.

Enter a Project name and pick the Type: JavaScript / Web, Node.js or Bun. The type says where the telemetry comes from and can't be changed later.

After Create project you land on the project's settings. Copy the DSN from the Connection section. It looks like https://opf_…@ingest.example.com and tells the SDK where to send data.

Install the SDK

npm i @openperf/sdk

Start it before your app

Call init once, as early as possible in your entry file:

main.ts
import { init } from "@openperf/sdk/browser";

init({ dsn: import.meta.env.VITE_OPENPERF_DSN });

Without a DSN init does nothing, so the same code runs safely in local builds.

Send a test error

Report an error from your code. Import captureException from the entry point you used for init:

import { captureException } from "@openperf/sdk/browser";

captureException(new Error("OpenPerf test"));

Open the dashboard

The error appears under Errors. Open it to see the stack trace, the trace it happened in and the logs around it.

Next steps

Everything for @openperf/sdk — platform setup, custom spans, distributed tracing, sampling, API reference and CLI — lives in the SDK documentation.

On this page