Skip to content

Herover/opentelemetry-distributed-tracing-example

Repository files navigation

opentelemetry-distributed-tracing-example

A slightly messy example system using distributed traces, made in golang using OpenTelemetry for creating traces in the code, Grafana Tempo with local storage as tracing backend, Loki for logs with their Docker logging driver, Prometheus to collect metrics, and Grafana to show the results.

To run it make sure docker, docker-compose and the loki docker log driver is installed, run docker-compose up -d, go to http://127.0.0.1:8080/?id=asdf and perhaps http://127.0.0.1:8080/ a couple of times, open grafana at http://localhost:3000/explore?orgId=1, select the Loki data source, make a query like {container_name=~"tracing_app1_1|tracing_app2_1"}, and look for the traceID fields with Tempo buttons.

About

A slightly messy distributed tracing example using golang and opentelemetry

Topics

Resources

Stars

Watchers

Forks