Skip to content

Error Reference

The file readers fail fast on malformed OTLP input. Errors identify file discovery problems, payload shape mismatches, file size limits, and unsupported metric shapes. Live ingest reports authentication, request, and backpressure failures through HTTP or gRPC status codes.

SELECT * FROM read_otlp_logs('missing/*.jsonl');
-- No files found that match the pattern

The path is resolved from DuckDB’s working directory. An absolute path avoids working-directory ambiguity.

SELECT * FROM read_otlp_traces('malformed.jsonl');
-- OTLP parse error on malformed.jsonl: ...

The top-level payload field must match the reader:

ReaderRequired payload field
read_otlp_tracesresourceSpans
read_otlp_logsresourceLogs
read_otlp_metrics_*resourceMetrics

read_otlp_metrics() and read_otlp_metrics_summary() raise an unsupported-function error. The supported typed metric readers are:

SELECT * FROM read_otlp_metrics_gauge('metrics.jsonl');
SELECT * FROM read_otlp_metrics_sum('metrics.jsonl');
SELECT * FROM read_otlp_metrics_histogram('metrics.jsonl');
SELECT * FROM read_otlp_metrics_exp_histogram('metrics.jsonl');

Each file is limited to 100 MB to bound memory use. Larger exports must be split, for example with the OpenTelemetry Collector file exporter’s rotation settings, and can then be queried through a glob.

otlp_serve returns HTTP errors as JSON. Common responses are:

StatusCondition
401 UnauthorizedThe bearer token is missing or invalid.
413 Content Too LargeThe request body exceeds max_body_bytes.
415 Unsupported Media TypeThe content type or content encoding is unsupported.
503 Service Unavailablemax_buffered_bytes backpressure rejects the request.

The Live Ingest Reference defines the complete HTTP and gRPC error contract.