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.
More on Tracing & OpenTelemetry
What is distributed tracing, and what are a trace, a span and a span context?BeginnerWhat fields does an OpenTelemetry span carry?BeginnerWhat are span kinds and why do they matter?IntermediateWhat does the W3C `traceparent` header look like?IntermediateWhat is baggage, and how is it different from span attributes?IntermediateWhy does OpenTelemetry separate the API from the SDK?Advanced