Tracing and Logging in Go with OpenTelemetry | Complete Guide with Example

Опубликовано: 16 Апрель 2026
на канале: ServiceFoundry
224
5

Learn how to add distributed tracing and structured logging to your Go applications using OpenTelemetry!

In this video, we walk through the otel-go-example project and show how to:
• Extract trace context from HTTP headers using the W3C traceparent format
• Configure the OpenTelemetry SDK and structured JSON logging with Logrus
• Set up middleware to inject trace context into your logs
• Use Traefik to forward tracing headers to your backend
• Run and test the application using curl with trace headers
• Correlate logs and traces using trace_id and span_id

📌 GitHub Repository: https://github.com/nsalexamy/otel-exa...
🎥 Related Video (Traefik & Trace Context):    • End-to-End Observability for Go Apps with ...  
📖 Documentation: https://www.w3.org/TR/trace-context/

Whether you’re building microservices or just getting started with observability in Go, this video gives you the building blocks to trace your requests end-to-end.