# What is OpenTelemetry? The Architecture and Core Signals Explained

> OpenTelemetry provides a unified, vendor-agnostic framework to generate, process, and route trace, metric, and log data to multiple backends.

Source: https://camnangai.com/en/engineering/what-is-opentelemetry  
Published: 2026-11-21

![OpenTelemetry Unified Observability Architecture](https://camnangai.com/articles/opentelemetry-la-gi/01-infographic-en.webp)

**OpenTelemetry** is an open-source, vendor-agnostic observability framework designed to generate, process, and export telemetry data—specifically traces, metrics, and logs—across distributed systems. It provides standardized APIs, SDKs, and infrastructure tooling to route operational signals to single or multiple storage backends without coupling your application code to a specific observability vendor.

By establishing a unified telemetry specification across programming languages and runtime environments, **OpenTelemetry** enables platform teams to standardize system instrumentation. You gain full programmatic control over telemetry batching, sampling, data redaction, and routing without modifying core application business logic.

Whether you operate microservices on Kubernetes or manage high-throughput LLM workloads, OpenTelemetry provides the standardized control plane necessary to maintain visibility across production infrastructure.

## What Problem Does OpenTelemetry Solve?

![Eliminating Observability Fragmentation with OpenTelemetry](https://camnangai.com/articles/opentelemetry-la-gi/02-en.webp)

Operating distributed software historically required running multiple proprietary or
signal-specific telemetry agents across your host infrastructure. A typical application stack
required individual daemon processes and specialized SDKs—one for Jaeger traces, another for
Prometheus metrics, and a third for Fluent Bit logs. This fragmented approach increased host CPU and
memory overhead while forcing engineering teams to manage disparate configuration interfaces across
every runtime node.

**OpenTelemetry** eliminates this operational fragmentation by providing a single, vendor-agnostic
architecture. Rather than deploying disconnected agent stacks, **OpenTelemetry** unifies trace,
metric, and log collection within a single specification and shared codebase. The framework natively
supports open-source protocols like Jaeger, Prometheus, and OTLP, enabling you to collect telemetry
across heterogeneous platforms through a single operational pipeline.

This unified architecture decouples application code from storage backends. You can route telemetry
streams to multiple destinations simultaneously, eliminating vendor lock-in. Swapping or adding
downstream analysis tools becomes a configuration change in your delivery pipeline, avoiding code
refactoring or binary recompilation.

By design, **OpenTelemetry** shifts processing tasks out of the application execution path.
Handling transient network failures through retries, executing payload batching, enforcing TLS
encryption, and performing sensitive data redaction or regex filtering are offloaded to external
pipeline components. This separation keeps application runtimes lightweight while guaranteeing
resilient telemetry delivery.

## The Core Telemetry Signals: Traces, Metrics, and Logs

![Core Observability Signals: Traces, Metrics, and Logs](https://camnangai.com/articles/opentelemetry-la-gi/03-en.webp)

**OpenTelemetry** structures operational visibility around three core telemetry signals: Traces,
Metrics, and Logs. Traces record the execution graph and network latency breakdown of operations
traversing distributed boundaries, isolating latency bottlenecks across service calls. Metrics
provide aggregated quantitative measurements—such as request throughput, error rates, and duration
histograms—offering time-series visibility into runtime health. Logs capture discrete, timestamped
structured events that detail contextual runtime state during diagnostic troubleshooting.

To categorize and segment these signals within multi-tenant environments, **OpenTelemetry** uses
**Resources** and **Instrumentation Scopes**. Resources attach static key-value attributes
representing the underlying entity emitting data, such as `host.name`, `os.type`, or
`k8s.cluster.name`. Instrumentation Scopes identify the specific library or package instance
emitting the telemetry (such as `io.opentelemetry.contrib.mongodb`), allowing you to isolate and
filter data based on its source module.

Standardizing attribute nomenclature across polyglot systems is achieved through **Semantic
Conventions**. Semantic Conventions specify exact attribute key names and value formats for common
operations across codebases, frameworks, and cloud services. This guarantees that an HTTP request or
database call produces identical attribute schemas regardless of whether the service is written in
Go, Java, or Python.

Structured span telemetry adhering to OpenTelemetry semantic conventions explicitly separates
immutable entity Resource attributes from transient operation Span attributes:

```yaml
# Resource Attributes (Entity Context)
resource.attributes:
  host.name: "prod-app-server-01"
  os.type: "linux"
  k8s.cluster.name: "us-east-cluster"

# Span Attributes (Operation Context)
span.name: "HTTP GET /api/v1/checkout"
span.attributes:
  http.request.method: "GET"
  http.response.status_code: 200
```

## Context Propagation and Baggage: Connecting Distributed Telemetry

![Context Propagation and Baggage Architecture](https://camnangai.com/articles/opentelemetry-la-gi/04-en.webp)

Distributed systems rely on **Context Propagation** to stitch isolated telemetry signals into
unified execution graphs across service boundaries. When an inbound request triggers a sequence of
RPC calls, Context Propagation extracts trace identifiers and parent span references from the
incoming payload and injects them into outbound requests. This correlation allows you to reconstruct
the end-to-end transaction flow across dozens of microservices.

Standardizing context transport relies on the W3C Trace Context specification. Outbound HTTP and gRPC
calls serialize context into standardized headers: `traceparent` (carrying the version, trace ID,
parent span ID, and trace flags) and `tracestate` (carrying vendor-specific routing state). Outbound
client interceptors serialize these strings into HTTP headers or gRPC metadata, while inbound server
interceptors deserialize them to reassemble the active context before handing control to request
handlers.

The Propagators API governs this serialization and deserialization process across different
transport mechanisms, known as context carriers. Beyond network headers, context carriers can include
message queue attributes or environment variables. By abstracting context injection and extraction,
**OpenTelemetry** allows distributed applications to maintain continuous execution context across
heterogeneous network boundaries and protocols.

Operating alongside context propagation is **Baggage**. Defined by the W3C Baggage specification,
Baggage allows you to pass custom key-value pairs (via the `baggage` header) alongside the trace
context across service calls. This makes arbitrary metadata—such as `customer.id`, `tenant.tier`, or
`region`—available to downstream microservices without re-querying central databases. Downstream
services can read Baggage entries and attach them as attributes to local traces, metrics, and logs,
enabling business-level filtering across distributed boundaries.

## API vs SDK: The Core Architectural Separation

![Architectural Separation Between OpenTelemetry API and SDK](https://camnangai.com/articles/opentelemetry-la-gi/05-en.webp)

**OpenTelemetry** maintains a strict architectural separation between the **API** and the **SDK**.
The API defines the abstract data types, instrumentation interfaces, and tracer implementations
required to record telemetry within source code. It contains zero processing logic or operational
dependencies. The SDK implements the API for a specific language runtime, providing concrete
telemetry processing pipelines, memory buffers, sampling algorithms, and network exporters.

Third-party open-source libraries depend exclusively on the OpenTelemetry API. When a framework
author instruments their code using the API, it introduces zero operational overhead or runtime side
effects to end users unless an SDK is explicitly registered. If no SDK is configured by the
application owner, the API defaults to no-op implementations (such as `NoopTracerProvider`) that
return invalid span contexts (`SpanContext.INVALID`). In this no-op state, calls to `startSpan()`
complete with near-zero CPU cycles and zero memory allocations.

Once you import and initialize the SDK within your application entry point, it intercepts API calls
and processes the generated telemetry data. The SDK manages performance-critical operations,
including batching spans in memory buffers, executing head-based sampling rules, and formatting binary
payloads for transmission via OpenTelemetry Protocol (OTLP) exporters.

Adhering to the core specification, language-specific API and SDK implementations conform to uniform
functional standards while respecting language-idiomatic syntax. This decoupled architecture allows
platform engineers to reconfigure sampling rates, batch size thresholds, or exporter endpoints
entirely within application startup code or environment variables without altering the underlying
instrumentation statements.

## The OpenTelemetry Collector: Receiving, Processing, and Exporting

![OpenTelemetry Collector Pipeline Architecture](https://camnangai.com/articles/opentelemetry-la-gi/06-en.webp)

The **OpenTelemetry Collector** is a high-performance, vendor-agnostic proxy service built on a
single, unified codebase. It receives, transforms, and exports telemetry data between instrumented
application workloads and downstream storage backends. Operating as an intermediary pipeline, the
Collector abstracts telemetry ingestion, processing, and delivery across enterprise infrastructure.

The Collector's internal architecture clearly separates components in the **data path** from
components managing **out-of-band operations**. The data path consists of **Receivers** (ingesting
telemetry in OTLP, Jaeger, or Prometheus formats), **Processors** (handling batching, attribute
filtering, and data transformations), **Exporters** (serializing and sending data to backends), and
**Connectors** (joining separate pipelines). Out-of-band management is handled by **Extensions**,
which supply administrative services such as HTTP health check endpoints, zPages diagnostics, and
authentication mechanisms.

Data moving through the internal pipeline undergoes a standardized memory transformation. Receivers
convert incoming payloads from native network protocols into internal OpenTelemetry Transformation
Language (OTTL) memory representations. Processors modify these in-memory representations directly—filtering
attributes or batching records—before Exporters serialize the OTTL objects into the specific protocol
required by target backends.

Engine benchmarks validate that a single Collector instance operates with low overhead and stable
memory usage under high load. Official performance benchmarks demonstrate stable CPU and memory
profiles under workloads processing 10,000 log entries, 10,000 metric data points, and 10,000 trace
spans per second per signal type.

```yaml
receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318

processors:
  batch:
    timeout: 1s
    send_batch_size: 1024

exporters:
  otlp:
    endpoint: telemetry-backend:4317

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [otlp]
```

## Collector Deployment Patterns: Agent vs Gateway

![Collector Deployment Patterns: Agent vs Gateway](https://camnangai.com/articles/opentelemetry-la-gi/07-en.webp)

Infrastructure teams deploy the **OpenTelemetry Collector** using two primary deployment
topologies: the **Agent Pattern** and the **Gateway Pattern**. In the Agent Pattern, you run the
Collector locally alongside your application code—either as a host daemon or as a Kubernetes sidecar
container. This approach provides immediate local network offloading via localhost loopback,
minimizes application egress latency, and enables automatic host-level resource attribute detection.

In the Gateway Pattern, Collectors deploy as a centralized, scalable service cluster behind network
load balancers. Centralizing Collector instances simplifies credential management by keeping API
tokens off application hosts, enforces strict network egress security boundaries, and provides the
computational capacity required for complex data transformations, cross-stream regex scrubbing, and
tail-based sampling algorithms.

A key architectural distinction between these patterns lies in where sampling decisions occur.
The SDK in your application process performs **head-based sampling**, making an immediate decision to
sample or drop a trace at span creation time before network egress, saving host bandwidth. In
contrast, a centralized Gateway Collector cluster enables **tail-based sampling**. The Gateway
buffers all spans belonging to a trace until the entire operation completes, allowing sampling rules
to evaluate downstream errors or execution latency thresholds before deciding whether to persist the
trace.

To balance performance and control, organizations widely deploy a hybrid **Agent-to-Gateway
Pattern**. Local Agent Collectors receive telemetry from application SDKs with minimal latency, append
local Kubernetes or host resource attributes, and immediately forward batch payloads to a centralized
Gateway cluster. The Gateway cluster handles credential-authenticated egress, tail-based sampling, and
compliance scrubbing, offering an optimal trade-off between local resource consumption and centralized
telemetry governance.

## OpenTelemetry for Generative AI and AI Agents

![Standardizing GenAI and AI Agent Telemetry with OpenTelemetry](https://camnangai.com/articles/opentelemetry-la-gi/08-en.webp)

As enterprise workloads incorporate Large Language Models (LLMs) and autonomous AI Agent workflows,
**OpenTelemetry** extends standard observability mechanisms to track AI model performance, execution
cost, and agent reasoning loops. Standardizing telemetry across generative AI infrastructure enables
platform engineers to monitor non-deterministic model responses, rate limits, and latency
distributions across multi-step agent chains.

**OpenTelemetry** establishes dedicated **GenAI Semantic Conventions** to standardize attribute keys
across LLM providers and AI frameworks. To ensure rapid specification iteration, these standards have
migrated to a dedicated repository (`open-telemetry/semantic-conventions-genai`). These conventions
define explicit attribute keys for inference calls, including `gen_ai.system` (e.g., `openai`,
`anthropic`), `gen_ai.request.model`, `gen_ai.usage.input_tokens`, `gen_ai.usage.output_tokens`, as
well as hyperparameters like temperature and top_p.

Telemetry signals provide complementary visibility across AI execution pipelines. **Traces**
capture the end-to-end execution lifecycle of LLM calls, vector database embeddings,
retrieval-augmented generation (RAG) lookups, and external tool calls, exposing latency bottlenecks in
agent reasoning steps. **Metrics** aggregate operational indicators—such as total token consumption
rates, API request throughput, latency distributions, and rate-limit error rates—giving you the data
needed to manage API cost quotas and operational budgets.

The ecosystem supports AI observability through specialized instrumentation libraries and semantic
specifications for industry-standard AI platforms. Native integrations cover the OpenAI Python API
library, Anthropic, AWS Bedrock, Azure AI Inference, and the Model Context Protocol (MCP), allowing you
to capture structured spans and metrics across heterogeneous AI workflows.

## When to Adopt OpenTelemetry in Your Infrastructure

For initial evaluation or small-scale environments, configured application SDKs can export OTLP
telemetry directly to backend storage to establish rapid visibility. As infrastructure scales into
high-concurrency production environments, you should deploy dedicated OpenTelemetry Collectors to
offload retries, payload batching, network encryption, and sensitive data filtering away from
application execution paths.

Standardizing on OpenTelemetry's unified API, SDK, and Collector control plane decouples your
software stack from proprietary vendors, securing long-term maintainability and system portability
across evolving cloud infrastructure.

## References

- [What is OpenTelemetry? | OpenTelemetry](https://opentelemetry.io/docs/what-is-opentelemetry/)
- [Signals | OpenTelemetry](https://opentelemetry.io/docs/concepts/signals/)
- [Instrumentation | OpenTelemetry](https://opentelemetry.io/docs/concepts/instrumentation/)
- [Collector | OpenTelemetry](https://opentelemetry.io/docs/collector/)
- [Generative AI Semantic Conventions | OpenTelemetry](https://opentelemetry.io/docs/specs/semconv/gen-ai/)
- [OpenTelemetry for Generative AI | OpenTelemetry](https://opentelemetry.io/blog/2024/otel-generative-ai/)
- [What is OpenTelemetry? - OpenTelemetry Explained - AWS](https://aws.amazon.com/what-is/opentelemetry/)
- [What is OpenTelemetry? How it Works & Use Cases | Datadog](https://www.datadoghq.com/knowledge-center/opentelemetry/)
