Distributed tracing
Follow one request across all your services in a waterfall and jump to its logs.
What a trace is
A trace is one request's journey through your system: the incoming call, the database queries, the calls to other services and how long each part took. Each part is a span. VitalRix receives traces from OpenTelemetry, so any language works.
Send traces
Follow Instrument your application. If you already use OpenTelemetry, point it at VitalRix:
OTEL_EXPORTER_OTLP_TRACES_ENDPOINT=https://api.vitalrix.com/api/v1/traces/otlp/v1/traces
OTEL_EXPORTER_OTLP_TRACES_HEADERS=x-api-key=pk_your_key
OTEL_EXPORTER_OTLP_TRACES_PROTOCOL=http/protobuf # or http/json- Protocol: OTLP over HTTP, protobuf or JSON. For gRPC, send through an OpenTelemetry Collector.
- Authentication: the
x-api-keyheader with a key that can write traces. - The organization always comes from the key; a request can never write into another organization.
Find traces
The Traces page lists recent requests with their root operation, service, duration, number of spans and whether they failed. Filter by:
| Filter | Example |
|---|---|
| Service | checkout |
| Status | Only errors |
| Minimum duration | Slower than 500 ms |
| Operation | POST /orders |
| Environment | production |
| Endpoint | GET /orders/:id |
| Time range | Last hour (default), or a custom range |
From APM you land here already filtered, for example from an endpoint's slowest requests.
Read the waterfall
- Each bar is a span, indented under the span that called it, placed at the time it started.
- Self time shows how long a span spent in its own work, not waiting for its children.
- A per-service breakdown shows where the total time went.
- Select a span to see its attributes: HTTP method and status, database statement, errors and more.
Traces and logs together
Send the trace id with your log lines (traceId, 32 hex characters). A log line then links to its trace, and a trace links to all its logs. See Logs.
Privacy
Before a span is stored, secrets in attributes, tokens, passwords, query-string values and SQL values are removed. See Security and privacy.
Something unclear or missing? Open VitalRix and use the in-app setup guides, or read Troubleshooting.