Skip to content

go-observability

Lightweight observability helpers for Go microservices: configuration patterns, structured logging (Zap), and OpenTelemetry integration (traces & metrics).

  • Overview and architecture
  • Getting started
  • Configuration and runtime flags
  • Logging and tracing
  • Middleware (Gin, gRPC)

Architecture

flowchart LR
  A[Config Loading] --> B[Logger Init]
  B --> C[OTEL Init]
  C --> D[Service Implementation]
  D --> E[Traces -> OTLP]
  D --> F[Metrics -> Prometheus/OTLP]
  D --> G[Logs -> stdout JSON]