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

How to Install the Extension

Install the DuckDB OpenTelemetry Extension to start querying OpenTelemetry data with SQL.

Install from Community

Install from DuckDB’s community extension repository:

-- Install from DuckDB community extensions
INSTALL otlp FROM community;
LOAD otlp;

DuckDB downloads the pre-built extension for your platform.

Requirements

  • DuckDB 0.10.0 or later
  • Supported platforms:
    • Linux (x86_64, arm64)
    • macOS (Intel, Apple Silicon)
    • Windows (x86_64)

Install the duckdb-otlp CLI

The extension also ships as a standalone binary that receives OTLP over the network, converts OTLP/OTAP files, and queries what it has stored — no DuckDB shell required.

# macOS or Linux (x86_64 or arm64), installs into ~/.local/bin
curl -fsSL https://smithclay.github.io/duckdb-otlp/install.sh | sh

The script picks the latest release for your platform, verifies the download against the release’s SHA256SUMS, and installs a single executable; re-run it to upgrade. Homebrew works too:

brew install smithclay/tap/duckdb-otlp

See the CLI reference for install options, every command, and the release tarballs to install by hand.

Use in Browser (DuckDB-WASM)

Try the extension in your browser without installation:

→ Interactive Demo

The WASM demo supports:

  • JSON, JSONL, and protobuf file reads
  • Loading sample OTLP data
  • Running SQL queries in-browser
  • Uploading your own files

Native builds include the live ingest server.

Build from Source

For development or custom builds, see CONTRIBUTING.md.

Quick Build

# Clone repository
git clone https://github.com/smithclay/duckdb-otlp.git
cd duckdb-otlp

# Install vcpkg dependencies
export VCPKG_TOOLCHAIN_PATH=`pwd`/vcpkg/scripts/buildsystems/vcpkg.cmake

# Build with ninja
GEN=ninja make

# DuckDB shell with extension loaded
./build/release/duckdb

WASM Build

# Build for browser
make wasm_eh

# Output: build/wasm_eh/extension/otlp/otlp.duckdb_extension.wasm

Note: The live ingest server is not available in WASM builds.

Verify Installation

Check that DuckDB loaded the extension:

-- List installed extensions
SELECT * FROM duckdb_extensions() WHERE extension_name = 'otlp';

-- Test with sample data
SELECT count(*) FROM read_otlp_logs('test/data/logs_simple.jsonl');

Next Steps

Troubleshooting

Extension Not Found

Error: Extension "otlp" not found

Ensure you’re using DuckDB 0.10+ and run:

INSTALL otlp FROM community;
LOAD otlp;

Platform Not Supported

If pre-built binaries aren’t available for your platform, build from source.

Live Ingest in WASM

Error: otlp_serve is not implemented for the wasm platform

Use a native DuckDB build for the HTTP ingest functions: otlp_serve, otlp_flush, otlp_stop, and otlp_server_list.

See Also