Add OpenTelemetry for observability
Aims
- Learn about distributed tracing, metrics and logs using OpenTelemetry and other popular tools
- Improve existing error handling, and logging while applying observability instrumentation
Add
- OpenTelemetry Tracing, exported to Jaeger
- Logs, exported to Loki via Promtail
- Include traceid in logs to support linked logs
- Use Grafana Cloud as persistent storage
Notes
-
opentelemetry-go is under development:
- tracing is stable: Using
- metrics is Alpha: Started using
- logging is frozen: Not using
- Metrics work was split into new issue #45 (closed)
Edited by Alex Chadwick