Skip to content

Try with Demo App

Try Kopai with the OpenTelemetry Astronomy Shop, a pre-instrumented microservices demo with 10+ services generating traces, metrics, and logs, all routed to Kopai running locally.

  • Docker and Docker Compose
  • Node.js v22.5.0+
Terminal window
npx @kopai/app start

In a separate terminal:

Terminal window
git clone https://github.com/kopai-app/opentelemetry-demo.git
cd opentelemetry-demo
make start-kopai

Open http://localhost:8080 and browse the Astronomy Shop — add items to cart, place orders, etc. This generates telemetry across all services.

Use the Kopai CLI to explore what’s been collected:

Terminal window
# Recent traces
npx @kopai/cli traces search --limit 5
# Logs from a specific service
npx @kopai/cli logs search --service cart --fields Timestamp,Body --sort ASC
# Discover available metrics
npx @kopai/cli metrics discover

View your telemetry visually at http://localhost:8000.

Terminal window
make stop-kopai

All OpenTelemetry signals from the demo’s collector are routed to Kopai via OTLP/HTTP:

┌────────────────────────────────────────────────┐
│ Docker Compose Network │
│ │
│ ┌─────────────────────────────┐ │
│ │ Astronomy Shop Demo │ │
│ │ (10+ microservices) │ │
│ │ │ │
│ │ All services instrumented │ │
│ │ with OpenTelemetry │ │
│ └────────────┬────────────────┘ │
│ │ │
│ │ OTLP (traces, metrics, logs) │
│ ▼ │
│ ┌─────────────────────────────┐ │
│ │ OTel Collector │ │
│ │ (in Docker) │ │
│ └────────────┬────────────────┘ │
│ │ │
│ │ OTLP/HTTP │
│ ▼ │
│ host.docker.internal:4318 │
└───────────────┬────────────────────────────────┘
┌────────────────────────────────────┐
│ @kopai/app (on host machine) │
│ │
│ OTel collector: localhost:4318 │
│ Dashboard: localhost:8000 │
└────────────────────────────────────┘

For details on the collector config and Docker Compose setup, see the full README on GitHub.