talira

OpenTelemetry

Vendor-neutral APIs, SDKs and tools for traces, metrics and logs

open sourceApache-2.0self-hostablefree

OpenTelemetry is an open source observability framework, a CNCF project, for generating, exporting and collecting telemetry (traces, metrics and logs) without tying an application to one vendor. It defines a specification, the OTLP protocol and semantic conventions for naming telemetry, and its language APIs and SDKs instrument code in C++, .NET, Erlang/Elixir, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust and Swift, with traces stable in most of them and metrics and logs stable in several. Zero-code instrumentation covers Go, .NET, PHP, Python, Java and JavaScript, and the Kubernetes operator can inject it; a registry lists instrumentation libraries for common frameworks. Data goes to any backend that accepts OTLP, open source such as Jaeger and Prometheus or commercial, directly or through the OpenTelemetry Collector. It stores and shows nothing itself, and its repositories are Apache-2.0.

Problems it solves

  • add distributed tracing to my microservices without locking into one observability vendor
  • instrument my Node.js, Python, Java or Go service once and send traces to whichever backend we choose
  • switch observability vendors without re-instrumenting our code
  • get traces from a Java or Python app without changing its code
  • propagate trace context across services and message queues
  • emit application metrics and logs in a standard format alongside traces
  • auto-instrument workloads in Kubernetes by injecting an agent
  • use standard attribute names for HTTP, database and messaging telemetry
  • send traces to Jaeger in development and to a commercial APM in production

Features

  • specification for APIs, SDKs, data and components
  • OTLP protocol for traces, metrics and logs
  • semantic conventions for naming common telemetry
  • language APIs and SDKs for C++, .NET, Erlang/Elixir, Go, Java, JavaScript, Kotlin, PHP, Python, Ruby, Rust and Swift
  • zero-code instrumentation for Go, .NET, PHP, Python, Java and JavaScript
  • OpenTelemetry Operator for Kubernetes injects zero-code instrumentation
  • registry of instrumentation libraries for common libraries and frameworks
  • context propagation, baggage, sampling and resources
  • exporters to open source and commercial backends
  • profiles signal in development

Limitations

  • Stability varies by language and signal: for example logs are still in development for JavaScript and Python, metrics for Ruby, and Kotlin is in development throughout12
  • Experimental semantic conventions can break: instrumentation that relies on conventions marked experimental may see breaking changes regardless of the SDK's status12
  • Not a backend: it generates and exports telemetry but leaves storage and visualization to other tools12

Capabilities

Has an APIplan not known
Takes pluginsplan not known
Has official SDKsplan not known

Alternatives

The same job

These do what OpenTelemetry does.

  1. Odigos Production context. For every decision.
  2. Grafana Beyla eBPF-based auto-instrumentation: OpenTelemetry traces and RED metrics with no code changes
  3. OpenTelemetry eBPF Instrumentation eBPF-based zero-code instrumentation following the OpenTelemetry standard
  4. OpenTelemetry Operator Kubernetes operator for the OpenTelemetry Collector and auto-instrumentation

Compare OpenTelemetry with the top 3