← 开源

A friendly OpenTelemetry desktop app for traces, metrics, and logs, built for humans and coding agents.

TypeScript
增长势头
+224 小时新增 Star+0.1%
1.37k
Star
60
Fork
16
贡献者
创建于 2022-10-14 · 更新于 2026-12-05 · 今日第 3593 名
主要开发者
CtrlSpicejmorrellcodeboten
README

otel-desktop-viewer

otel-desktop-viewer is a friendly OpenTelemetry desktop app for traces, metrics, and logs, built for humans and coding agents. It packages an OpenTelemetry Collector, DuckDB, a desktop interface, and a queryable CLI into one local install.

1. Install the viewer

Desktop app

Download the latest desktop installer from GitHub Releases:

Platform Architecture Installer
macOS Apple Silicon OTel-Desktop-Viewer-*-mac-arm64.dmg (or Homebrew Cask below)
Windows x64 OTel-Desktop-Viewer-Setup-*-windows-x64.exe
Linux x86_64, arm64 OTel-Desktop-Viewer-*-linux-*.AppImage

On macOS Apple Silicon, Homebrew Cask installs both OTel Desktop Viewer.app and the otel-desktop-viewer CLI binary (on Linux it installs the CLI binary):

brew tap ctrlspice/otel-desktop-viewer
brew install --cask otel-desktop-viewer

CLI and container options

GitHub Releases (CLI binaries)

Download the latest CLI archive for your platform:

Platform Architecture Download
macOS Apple Silicon tar.gz
Linux x86_64 tar.gz
Linux arm64 tar.gz
Windows x86_64 zip

See Releases for release notes and older versions. Linux binaries require glibc 2.39 or newer.

Extract the downloaded archive, then open a terminal in the extracted directory. On macOS/Linux, run ./otel-desktop-viewer, and in Windows PowerShell run .\otel-desktop-viewer.exe. Use that local path in place of otel-desktop-viewer in the examples below.

Docker
docker run -p 8000:8000 -p 4317:4317 -p 4318:4318 ghcr.io/ctrlspice/otel-desktop-viewer:latest

See the Docker guide for ports, persistent storage, Docker Compose and image options.

go install

Building the current source requires Go 1.26 and CGO. DuckDB 2 is statically linked into the executable; a separate DuckDB installation is not required.

go version
go env CGO_ENABLED   # should print 1
gcc --version        # or cc --version

On Windows: Use a MinGW64 GCC toolchain compatible with DuckDB's prebuilt static library. CI uses C:\mingw64\bin. Put the compatible toolchain first in PATH and verify which compiler CGO will find. For that installation, in PowerShell:

$env:PATH = "C:\mingw64\bin;$env:PATH"
(Get-Command gcc).Source
gcc --version
g++ --version

See the Contributor guide to run from a checkout. Prebuilt release binaries do not need a compiler.

On Linux/macOS: the checks above are sufficient.

@latest resolves to the newest stable tag on the Go module proxy, not an alpha or beta release. Pin a version such as @v0.9.0, or use a GitHub Release binary to avoid compiling locally.

# install the CLI tool
go install github.com/CtrlSpice/otel-desktop-viewer@latest

# run it!
$(go env GOPATH)/bin/otel-desktop-viewer

# if you have $GOPATH/bin added to your $PATH you can call it directly!
otel-desktop-viewer

# if not you can add it to your $PATH by running this or adding it to
# your startup script (usually ~/.bashrc or ~/.zshrc)
export PATH="$(go env GOPATH)/bin:$PATH"
apt / dnf

Stable releases include .deb and .rpm packages on GemFury.

Debian / Ubuntu:

curl -fsSL https://apt.fury.io/ctrlspice/gpg.key | sudo gpg --dearmor -o /usr/share/keyrings/fury.gpg
echo "deb [signed-by=/usr/share/keyrings/fury.gpg] https://apt.fury.io/ctrlspice/ * *" \
  | sudo tee /etc/apt/sources.list.d/fury.list
sudo apt update
sudo apt install otel-desktop-viewer

Fedora / RHEL:

sudo tee /etc/yum.repos.d/fury.repo <<EOF
[fury]
name=Gemfury Repo
baseurl=https://yum.fury.io/ctrlspice/
enabled=1
gpgcheck=0
EOF
sudo dnf install otel-desktop-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

Launch OTel Desktop Viewer from Applications (macOS), the Start menu (Windows), or your AppImage (Linux). You can also start the CLI directly from a terminal, which opens your browser at http://localhost:8000:

otel-desktop-viewer

By default, the viewer stores persistent managed sessions in your app-data directory (starting with current.duckdb, a 2GB disk retention cap, and a 2GB DuckDB working memory limit) and receives OTLP on localhost:4317 (gRPC) and localhost:4318 (HTTP). Pass --db-max-memory (minimum 128MB), run otel-desktop-viewer settings --db-max-memory, or open Settings > Startup to adjust the memory limit.

Use the session switcher in the toolbar to switch captures or start a new one. Pass --db to open a specific DuckDB file outside managed sessions:

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

4. Use the viewer

🧑‍💻 For humans

Open the desktop app (or http://localhost:8000 when running the CLI) to view telemetry as it arrives from your application, or drag an OTLP JSON file onto the window to inspect saved telemetry.

Traces

otel-desktop-viewer-traces.mp4

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

Metrics

otel-desktop-viewer-metrics.mp4

See how one time interval contributes to the histogram.

Logs

otel-desktop-viewer-logs.mp4

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 http://localhost:8000/llms.txt 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.

Code signing policy

Free code signing provided by SignPath.io, certificate by SignPath Foundation.

  • Committers and reviewers: CtrlSpice
  • Approvers: CtrlSpice
  • Privacy policy: This program will not transfer any information to other networked systems unless specifically requested by the user or the person installing or operating it (such as when an external --self-telemetry-endpoint is explicitly configured).

License

Apache 2.0, see LICENSE

排名相邻

AI Rank iPhone 版

随时追踪 AI 模型榜单

在 App Store 下载