Observability 2.0 moves away from siloed metrics, logs, and traces into wide, contextual, high-cardinality events.
Step 1 — The Shift to OpenTelemetry
OpenTelemetry (OTel) has become the undisputed standard for instrumenting code, standardizing how telemetry data is generated and exported.
otel-collector.yamlyaml
receivers:
otlp:
protocols:
grpc:
http:
exporters:
prometheus:
endpoint: '0.0.0.0:8889'
jaeger:
endpoint: 'jaeger-all-in-one:14250'
service:
pipelines:
traces:
receivers: [otlp]
exporters: [jaeger]Step 2 — Distributed Tracing
In microservices, a single user request might hit 10 services. Traces connect these spans to visualize the critical path and latency.
Key OTel Concepts
- Trace ID: Unique identifier for the entire request lifecycle.
- Span: A single operation within a trace.
- Context Propagation: Passing Trace IDs in HTTP headers between services.