This project demonstrates how to set up tracing using OpenTelemetry with Go. It uses an OpenTelemetry collector and Jaeger for visualization.
- Tracing with OpenTelemetry
- Exports traces to Jaeger
- Visualize traces with Jaeger UI
-
Clone the repository:
git clone https://github.com/your-username/otel-starter.git cd otel-starter
-
Run Docker services:
Start the OpenTelemetry collector and Jaeger:
docker-compose up -d
-
Run the Go application:
After starting the collector, run the Go application:
go run main.go
-
View traces in Jaeger:
Open your browser and go to
http://localhost:16686
to view the traces in Jaeger.