Every Tracelit backend SDK ships a metrics API on top of OpenTelemetry. Create custom instruments in your code and the SDK collects automatic runtime metrics in the background — no separate metrics agent needed.Documentation Index
Fetch the complete documentation index at: https://docs.tracelit.io/llms.txt
Use this file to discover all available pages before exploring further.
Instrument types
| Type | Use when |
|---|---|
| Counter | A value that only goes up — requests served, orders placed, emails sent |
| Histogram | A distribution of values — request durations, payload sizes, queue wait time |
| Gauge | A value that can go up or down — active connections, queue depth, cache size |
Custom metrics
Observable gauges
Use an observable gauge when the value is expensive to compute and should only be read on each export interval:Node.js
Automatic metrics
Once the SDK starts, the following metrics are collected with no extra code:- Node.js
- Go
- .NET
| Metric | Type | Description | Interval |
|---|---|---|---|
process.memory.rss | Gauge | Process RSS memory (MB) | 60 s |
process.event_loop.lag | Histogram | Node.js event loop lag (ms) | 30 s |
http.server.request.count | Counter | Total HTTP requests (with Express middleware) | — |
http.server.request.duration | Histogram | Request duration (ms) | — |
http.server.error.count | Counter | 5xx responses | — |
Viewing metrics
All metrics are available in the Metrics tab of your service in the Tracelit dashboard. You can:- Plot any metric by name with custom time ranges and aggregations
- Overlay metrics from multiple services on a single chart
- Set alert thresholds on any metric — see Incidents
Learn more
Distributed tracing
Traces and metrics share the same SDK — no extra setup.
Incidents
Metric anomalies and thresholds can trigger incidents automatically.