@trel-to/browser
v0.5.0
Published
Trel SDK for browsers — exceptions, transactions, replay, and web vitals for trel.to
Maintainers
Readme
@trel-to/browser
Client exceptions, pageload and navigation transactions, fetch/XHR spans, and web vitals for trel.to.
import { init, setUser, captureException } from "@trel-to/browser";
init({
apiKey: "trel_sk_…",
service: "web",
environment: "production",
release: "8f3a1c2",
});
setUser({ id: "user_123" });release is required for source maps and crash-free sessions. Stamp bundles with @trel-to/browser/vite or @trel-to/browser/webpack, then trel sourcemaps upload ./dist --release 8f3a1c2.
Session replay (separate bundle):
import "@trel-to/browser/replay";
init({ apiKey: "trel_sk_…", release: "8f3a1c2", replaysOnErrorSampleRate: 1 });Framework packages: @trel-to/react, @trel-to/vue, @trel-to/nextjs. Docs: https://docs.trel.to/browser
