Skip to content
DocumentationOpenTelemetry

Traces

Send OpenTelemetry traces to Altertable when you want spans, service timing, status, attributes, events, and links to be queryable beside product, operational, and business data.

Accepted spans are written to opentelemetry.main.spans.

SDK and collector setup

Follow Configure an exporter for instrumentation, authentication, and OTLP/HTTP setup. See POST /v1/traces for the request body and responses.

Query traces

Spans are normal SQL rows once they are ingested:

SQL
SELECT
trace_id,
span_id,
service_name,
name,
start_time,
duration_ns / 1e6 AS duration_ms,
status_code
FROM opentelemetry.main.spans
ORDER BY start_time DESC
LIMIT 100;

You can also explore traces in the Altertable Explore tab with Lucene-syntax search.

Advanced: trace ID locality

Continue with Query telemetry to investigate and correlate signals.