SDK
SDK
Instrument browser, Node.js and Bun apps with @openperf/sdk.
@openperf/sdk collects errors, traces, web vitals and logs from JavaScript and TypeScript applications and sends them to OpenPerf. It ships two entry points: @openperf/sdk/browser for web apps and @openperf/sdk/node for Node.js and Bun.
Platforms
Browser
Collect errors, page loads, web vitals and requests from a web app.
Node.js & Bun
Trace requests, collect logs and report errors from a server app.
Guides
Capture errors
Report handled errors and add the user, tags and breadcrumbs.
Custom spans
Time your own operations inside a trace.
Distributed tracing
Join browser and server spans into one trace.
Sampling
Sample traces and drop errors you don't need.
Releases & source maps
Track release health and upload browser source maps.
Environments
Separate production, staging and preview telemetry.
Reference
SDK API
Every function, option and type exported by @openperf/sdk.
CLI
Create releases and upload source maps with the openperf command.
Versions
The SDK has its own versions, apart from the server. Any 0.x server accepts telemetry from any 0.x SDK. What a newer SDK adds shows up once the server is upgraded too. Changes are listed in the changelog.