CO

ctrlspice/otel-desktop-viewer

Developer tools
1.3K stars Quality 74 Trend 22Apache-2.0

otel-desktop-viewer is a CLI tool for receiving OpenTelemetry traces while working on your local machine.

Overview

otel-desktop-viewer is a local OpenTelemetry viewer. It uses the OpenTelemetry Collector, DuckDB, and Svelte. ~~Also, it has a dark mode~~ Y'all. I added another dark mode. It has dark modes now. Once running, the UI is at localhost:8000. The OTLP receivers listen on localhost:4317 (gRPC) and localhost:4318 (HTTP). Download a pre-built binary for your platform from Releases. On Windows, unzip the archive and run otel-desktop-viewer.exe. release binaries require (Ubuntu 24.04+, Debian 13+, Fedora 40+). This applies to the tarballs, the .deb/.rpm packages, and the Docker images. Stable releases include .deb and .rpm packages on GemFury. Building from source requires Go and CGO.

README

otel-desktop-viewer

otel-desktop-viewer is a local OpenTelemetry viewer for traces, metrics and logs. It packages an OpenTelemetry Collector, DuckDB and a browser-based interface into a single executable.

1. Install the viewer

2. Configure your exporter

Your application needs OpenTelemetry instrumentation and an OTLP exporter. If its SDK supports environment variables, choose one of the following configurations before starting the application.

For OTLP over HTTP:

export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
export OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf

For OTLP over gRPC:

export OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4317
export OTEL_EXPORTER_OTLP_PROTOCOL=grpc

See SDK configuration for more options and examples.

3. Start the viewer

By default, the viewer stores telemetry in memory, opens your browser at http://localhost:8000, and receives OTLP on localhost:4317 (gRPC) and localhost:4318 (HTTP):

otel-desktop-viewer

Telemetry stored in memory is lost when the viewer stops. Use --db to save it to a file, then start the viewer with that file to pick up where you left off:

otel-desktop-viewer --db ./telemetry.duckdb

4. Use the viewer

🧑‍💻 For humans

Open in your browser to view telemetry as it arrives from your application, or drag an OTLP JSON file onto the page to inspect saved telemetry.

Traces

https://github.com/user-attachments/assets/f3a23ac0-d112-4560-b09d-ab284b0e9aaf

Inspect an AI agent’s tool calls and recorded answer.

Metrics

https://github.com/user-attachments/assets/9e18264d-58f6-47a7-a248-892a008cf8cd

See how one time interval contributes to the histogram.

Logs

https://github.com/user-attachments/assets/f62da1fb-c926-434e-bbff-c5c3b8072df5

Explore retry details in a structured log.

🤖 For agents

  1. Read CLI help for available commands and options:

    otel-desktop-viewer --help
    

    For help with a specific command, add --help:

    otel-desktop-viewer query --help
    
  2. Read the bundled agent guide for instructions on connecting to the viewer and inspecting telemetry:

    otel-desktop-viewer skills
    
  3. Optional: Install the agent skill:

    npx skills add CtrlSpice/otel-desktop-viewer --skill otel-desktop-viewer
    

The guide is also available at while the viewer is running.

5. Learn more

What’s with the axolotl?

Her name is Lulu. She is very pink, and I love her. She’s been our mascot since 2023, back when I really wanted to call the app AxolOtel. Now, Lulu belongs to the people. She’s public domain under CC0. The animation is just me playing with pixels. If you have so much as a modicum of artistic or design chops and want to take a crack at her artwork or animation, that would be awesome.

Contribute

See the Contributor guide. Please read our Code of Conduct before participating.

License

Apache 2.0, see LICENSE

View the full README on GitHub

Recommended Tools

Try a different keyword or remove a filter.

Install

npx skillfish add ctrlspice/otel-desktop-viewer
New to MCP? Start with the mcpskill.org guide →