TraceQL
TraceQL executes through POST /v1/traceql. It is a polymorphic route: a
payload can be a read-only query or a mutating command. SDKs and gateway policy
must classify the payload before deciding whether a retry is safe.
Read-Only Query
Read-only TraceQL returns the same query response shape as the native query route. Transient failures may be retried only when the SDK can prove the payload is read-only.
Mutating Command
Mutating TraceQL requests require Idempotency-Key before idempotency retries
are allowed. Empty keys and keys containing CR/LF must be rejected before
network I/O.
SQL-ish Boundary
TraceQL includes a bounded SQL-ish SELECT adapter for compatibility:
This is not SQL or PostgreSQL compatibility. JOIN, GROUP, ORDER, UNION,
DDL, DML, and arbitrary SQL execution are outside the v0 contract.
Use the API reference for the exact TraceQlQueryRequest and
TraceQlQueryResponse shapes.