What is OpenTelemetry and what are its main parts?

BeginnerConceptTracing & OpenTelemetry
Answer

OpenTelemetry (OTel) is the CNCF vendor-neutral standard for producing and shipping telemetry: traces, metrics, logs (and profiles, in development).

  • API: what libraries and application code call to create spans and metrics.
  • SDK: the implementation per language: sampling, batching, exporting.
  • Instrumentation libraries / auto-instrumentation: ready-made hooks for HTTP frameworks, DB drivers, gRPC, Kafka.
  • OTLP: the wire protocol.
  • Collector: a standalone pipeline to receive, process and export telemetry.
  • Semantic conventions: standard attribute names (http.response.status_code, service.name).

The point: instrument once, send anywhere (Tempo, Jaeger, Datadog, X-Ray, Elastic) by changing an exporter, not your code.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & OpenTelemetry