https://www.meetup.com/stl-go/events/293596247/
https://docs.google.com/presentation/d/1kElmZfLCjW8kcn5hS2y_Xx5HWIQKkeAWIBZNDV6ILUo
-
Run docker from otel-docker directory: This will start otel-collector, Zipkin and Prometheus
# from this directory docker-compose up
-
Run app
# from the app directory go run .
-
Teardown the docker images
# from this directory docker-compose down
Additional instructions are at otel-docker/README.md
Run the app with the following required environment variables
export OTEL_EXPORTER_OTLP_ENDPOINT = "0.0.0.0:4317"
export OTEL_SERVICE_NAME = "shipping-service"
export OTEL_RESOURCE_ATTRIBUTES = deployment.environment=production
go run .
curl http://127.0.0.1:9100/shipping/11