Skip to content
Projetos

CtrlSpice/otel-desktop-viewer

Ver no GitHub

Sobre

Um aplicativo de desktop amigável para OpenTelemetry, com suporte a traces, métricas e logs, criado para pessoas e agentes de programação.

Ferramentas de desenvolvimento

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+2
em 7 dias
+29
em 15 dias
+43
em 1 mês
+63

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Lulu, a pink pixel-art axolotl 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.

Home: service map and matching logs. Open the full-size screenshot. Traces: an agent investigation with nested tool-call attributes. Open the full-size screenshot.

Metrics: latency heatmap, percentile curves and datapoints. Open the full-size screenshot. Logs: structured records with expanded retry details. Open the full-size screenshot.

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 and a 2GB cap) and receives OTLP on localhost:4317 (gRPC) and localhost:4318 (HTTP).

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

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 http://localhost:8000/llms.txt while the viewer is running.

5. Learn more

What's with the axolotl?

An orange crab raises his claws for uppies. Lulu squats to pick him up, lifts him to the telescope, then sets him down for head pats before he scuttles away with hearts.

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

Explore projetos relacionados

Carregando…