Skip to main content
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.

Instrument types


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:
Add the Express middleware to enable HTTP metrics:

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