Cloud Native 10 min read

An Overview of OpenTelemetry: Origins, Architecture, and Instrumentation

OpenTelemetry unifies tracing, metrics, and logs by merging OpenTracing and OpenCensus into a cross‑language specification, collector, language SDKs, and instrumentation libraries, offering vendor‑agnostic, low‑maintenance telemetry collection that separates data gathering from business logic while requiring external back‑ends for storage and analysis.

Tencent Cloud Developer
Tencent Cloud Developer
Tencent Cloud Developer
An Overview of OpenTelemetry: Origins, Architecture, and Instrumentation

Distributed applications increasingly rely on strong observability facilities, which in turn depend on high‑quality telemetry data. Existing tracing solutions suffer from fragmented standards and heavy client maintenance burdens.

OpenTelemetry provides a vendor‑agnostic, unified telemetry data collection framework that addresses these issues.

1. Origin – OpenTelemetry is the result of merging two open‑source projects: OpenTracing (initiated by Ben Sigelman in 2016) and OpenCensus (originating from Google). Both projects aimed to standardize tracing and metrics, and their unification eliminated the duplication of standards.

2. Why It Is Needed – From a user perspective, integrating a tracing client is invasive and locks the application to a specific vendor. From a vendor perspective, supporting multiple client formats increases backend maintenance costs. OpenTelemetry’s unified approach mitigates these problems.

3. Project Composition – OpenTelemetry consists of four main parts:

Cross‑language specification (opentelemetry‑specification)

Collector for gathering, transforming, and forwarding telemetry data

Language‑specific API & SDKs

Instrumentation & contrib libraries

Cross‑language Specification – Defines internal client implementation details, communication protocols (primarily the OpenTelemetry Protocol, OTLP), and data models for traces, metrics, and logs. The specification repository is https://github.com/open-telemetry/opentelemetry-specification .

Collector – Implements the principle that telemetry collection should be orthogonal to business logic. It can be deployed as an agent (sidecar or DaemonSet) or as a gateway middleware. The collector pipeline consists of three component types: receiver (listens for incoming telemetry in a specific protocol), processor (filters, enriches, or batches data), and exporter (sends data to back‑ends such as Zipkin, Jaeger, Prometheus, Loki, etc.). Key repositories: https://github.com/open-telemetry/opentelemetry-collector (core) and https://github.com/open-telemetry/opentelemetry-collector-contrib (additional receivers/exporters).

Language SDKs – OpenTelemetry provides SDKs for many languages (C++, .NET, Go, Java, JavaScript, Python, Ruby, etc.). As of late 2021, tracing support is stable for most major languages, while metrics are still in alpha and logs are planned for 2022.

Instrumentation & Contrib – Direct use of SDKs often requires code changes (adding spans, propagating context). To reduce intrusiveness, developers can leverage framework‑level middleware (e.g., Gin middleware for Go) or language‑specific features such as Java agents with ByteBuddy for automatic instrumentation.

Conclusion – OpenTelemetry’s mission is to enable the collection of high‑quality, large‑scale, portable telemetry data, making robust observability possible. It does not provide a complete observability stack; users still need back‑ends for storage and analysis (e.g., Zipkin, Jaeger, Prometheus, Loki).

cloud-nativeInstrumentationObservabilityOpenTelemetrytracingCollectortelemetry
Tencent Cloud Developer
Written by

Tencent Cloud Developer

Official Tencent Cloud community account that brings together developers, shares practical tech insights, and fosters an influential tech exchange community.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.