Cloud & Software Development

OpenTelemetry

Also known as: OTel, OTLP, OpenTracing, OpenCensus, distributed tracing, OTel Collector

OpenTelemetry (OTel) is an open-source project that standardizes how applications emit observability data -- traces (following a request through services), metrics (counters and measurements), and logs.

Instead of being locked into Datadog or Dynatrace's proprietary agents, you instrument code once with OTel and route data to any backend.

OpenTelemetry, explained at three levels

At home

When you have a complex app that uses many services, tracking what happens during a user request is hard. OpenTelemetry adds instrumentation to your code that records what each service did, how long it took, and any errors -- then sends that data to your monitoring tool of choice.

At work

OpenTelemetry solves vendor lock-in for observability. Instead of installing Datadog's proprietary agent, teams instrument code with OTel and can send the same data to Datadog, Grafana, Prometheus, or any compatible backend -- switching vendors doesn't require re-instrumenting the application.

Real-world examples

At home

Jerome added OTel auto-instrumentation to his Python Flask app. Now every HTTP request generates a trace showing Flask processing time, the database query time, and external API call time -- all visible in Grafana Tempo without any manual code changes.

At work

Nadia's platform team adopted OTel across all microservices. They collect traces to Grafana Tempo, metrics to Prometheus, and logs to Loki -- all via the OTel Collector. When they decided to add Datadog for AI-powered anomaly detection, they added a Datadog exporter to the Collector config -- no application code changes.

Common confusions

  • OpenTelemetry replaces Datadog or Prometheus — OpenTelemetry is an instrumentation and collection framework, not a backend. You still need a backend to store, query, and visualize data (Datadog, Grafana, Prometheus, Jaeger, Tempo). OTel standardizes how data is collected and formatted, not where it's stored.
  • OpenTelemetry is only for microservices — OTel works for monoliths, serverless functions, batch jobs, and microservices. Any application can benefit from standardized observability instrumentation, regardless of architecture.

For analysts

OpenTelemetry traces expose the full journey of a business transaction across systems -- a purchase that touches the web frontend, payment service, inventory system, and notification service can be traced end-to-end. BAs can use this to identify where business process bottlenecks occur technically.

History & origin

OpenTelemetry was formed in 2019 by merging two competing projects: OpenCensus (Google) and OpenTracing (CNCF). The merger was driven by the realization that fragmented instrumentation standards were causing pain for both developers and vendors. OTel graduated from CNCF sandbox to incubating status rapidly, becoming the second-most-active CNCF project (after Kubernetes). It achieved stable specification for traces in 2021, metrics in 2022, and logs in 2023.