SRE & Observability (50 Qs)•Part 3: Advanced Internals, Scale & Production Patterns (Senior / Lead)
OpenTelemetry (OTel) Architecture: OTel Collector, Traces, Metrics, Logs, and W3C TraceContext.
senior LevelSystem Design
In Simple Words: OpenTelemetry is the vendor-neutral standard for cloud-native telemetry:
- API & SDK: Instrument code with unified spans, metrics, and logs.
- W3C TraceContext: Automatically propagates
traceparent(version-trace_id-parent_id-flags) across HTTP and gRPC network boundaries. - OTel Collector: A high-performance proxy agent running as a sidecar or daemonset:
- Receivers: Ingest data (OTLP, Jaeger, Zipkin, Prometheus).
- Processors: Batch, compress, mask PII, and filter traces.
- Exporters: Push telemetry simultaneously to backends (Datadog, Honeycomb, Jaeger, Prometheus) with zero vendor lock-in.