Documentation
Build reliable software with confidence.
Telemetry Tracker is a lightweight, self-hostable pipeline for errors, events, and sessions. Install an SDK, point it at your ingest URL, and start triaging issues from the dashboard. New to the official cloud? Start with Hosted cloud getting started. Framework setup without the full docs sidebar: Next.js, React, Node.js, React Native. Comparing to a larger platform? Sentry alternative. Already sending data with Sentry? Migrate from Sentry.
Introduction
Telemetry Tracker brings three signals you actually act on — exceptions, structured product events, and session boundaries — into one store you can filter by app, time, and identity in the dashboard.
SDKs are small wrappers around @telemetry-tracker/core that handle init, batching, and HTTP ingest. You can self-host the API and dashboard or use a hosted deployment with orgs, projects, and API keys.
Quickstart
Install the core package (or a platform wrapper), initialize with your ingest URL and API key, and events will appear in the dashboard within seconds.
- 1
Install the SDK
bashnpm install @telemetry-tracker/core - 2
Initialize at app entry
tsimport { init } from "@telemetry-tracker/core"; init({ ingestUrl: "https://your-api.example.com", app: "my-app", apiKey: "tt_live_<publicId>_<secret>", environment: "production", release: "[email protected]", }); - 3
Capture your first event
tsimport { trackEvent } from "@telemetry-tracker/core"; trackEvent("checkout.completed", { plan: "pro", amount_usd: 29, });
Core concepts
- Organization & project
- Multi-tenant containers in the dashboard. Each project has its own API keys, usage meter, and data isolation. Pass an app string at SDK init to group telemetry in filters.
- Event
- A named action with optional properties, sent via trackEvent or platform helpers like screen().
- Error group
- Fingerprinted exceptions deduplicated server-side. Each group tracks first/last seen and occurrence count.
- Session
- Session start and end markers with duration. Useful for correlating errors and events to user visits.
Projects & API keys
Create an organization and project in the dashboard, then generate an API key. Pass ingestUrl (your API base URL), app (logical app name), and apiKey to init().
Optional fields like environment and release are sent with every payload and appear in filters and error context. See Using the dashboard for org setup and key rotation.
Error tracking
Uncaught exceptions and unhandled promise rejections are captured automatically in browser SDKs after init(). Call trackError(error, context?) for handled errors. The API fingerprints stack traces, groups them into issues, and stores individual occurrences with context.
import { trackError } from "@telemetry-tracker/core";
try {
await chargeCard();
} catch (err) {
trackError(err, { page: "/checkout", step: "payment" });
throw err;
}Event tracking
Use trackEvent(name, properties?) for product analytics. Platform packages add helpers — for example screen(pathname) for page views and identify(userId) to attach a stable user id while keeping the anonymous device id for pre-login activity.
import { trackEvent, screen, identify } from "@telemetry-tracker/core";
identify("user-123");
screen("/settings");
trackEvent("plan.upgraded", { from: "free", to: "pro" });Sessions
Sessions mark the start and end of a user visit. The SDK sends session boundaries automatically; the dashboard shows duration and lets you filter errors and events by session. For platform-specific setup (page tracking, app lifecycle), see the Next.js, Vue, Nuxt, NestJS, React Native. See Release notes for platform version history.
Ingest API
SDKs POST JSON to the API under /ingest/*. You can also send payloads directly with your project API key:
curl -X POST https://your-api.example.com/ingest/event \
-H "Authorization: Bearer tt_live_<publicId>_<secret>" \
-H "Content-Type: application/json" \
-d '{
"app": "my-app",
"name": "checkout.completed",
"properties": { "plan": "pro" }
}'Endpoints: POST /ingest/event, POST /ingest/error, POST /ingest/session, and POST /ingest/batch for batched payloads. Each accepted request counts toward your plan's monthly ingest units.
Self-hosting
The monorepo includes a Fastify API (apps/api) and Next.js dashboard (apps/dashboard). Run both locally or deploy with Docker — see the repository README and DEPLOYMENT.md for environment variables, database setup, and optional Stripe billing. Upgrade paths by version: Release notes. Narrative overview: Self-hosted error tracking.
Platform guides: SDK reference, Next.js, Node.js, NestJS, Nuxt, Vue, React Native.
Need a hand?
Open an issue on GitHub or check the architecture docs in the repository.
Writing a tutorial, newsletter issue, or video about Telemetry Tracker? Join the affiliate program and earn 30% recurring.