Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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.

File reader errors

No files matched the path or glob

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.

Malformed OTLP input

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

Unsupported metric shape

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');

File is too large

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.

Live ingest errors

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.