Skip to content

Latest commit

 

History

History
 
 

opentelemetry-demo

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

OpenTelemetry Demo example for Uptrace

This example demonstrates how to run opentelemetry-demo with Uptrace backend.

Using Docker

Step 1. Download the opentelemetry-demo using Git:

git clone https://github.com/uptrace/opentelemetry-demo.git
cd opentelemetry-demo

Step 2. Start the demo:

docker compose up --no-build

Step 3. Make sure Uptrace is running:

docker-compose logs uptrace

Step 4. Open Uptrace UI at http://localhost:14318/overview/2

If something is not working, check OpenTelemetry Collector logs:

docker-compose logs otelcol

Using Helm and Uptrace Cloud

Add OpenTelemetry Demo Helm repo:

helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts

Create override-values.yml file with the Otel Collector configuration for Uptrace. Don't forget to specify your Uptrace DSN.

opentelemetry-collector:
  config:
    exporters:
      otlp/uptrace:
        endpoint: https://otlp.uptrace.dev:4317
        tls: { insecure: false }
        headers:
          uptrace-dsn: '<YOUR_DSN_GOES_HERE>'

    service:
      pipelines:
        traces:
          exporters: [spanmetrics, otlp/uptrace]
        metrics:
          exporters: [otlp/uptrace]
        logs:
          exporters: [otlp/uptrace]

Start the demo:

helm install my-otel-demo open-telemetry/opentelemetry-demo --values override-values.yml

To check the status of OpenTelemetry Demo pods:

kubectl get pods