// AI NATIVE STACK

AI Native › AI Native Infra › Observability › OpenTelemetry

CRASH COURSE · AI-NATIVE · beginner · 9 min read · OTel

OpenTelemetry — one instrumentation standard for metrics, traces, and logs.

observabilityai-nativeopentelemetrytracingmetrics

TL;DR — OpenTelemetry defines a vendor-neutral way to instrument applications and export metrics, traces, and logs. For AI services it captures request latency, token counts, model calls, cache hits, and downstream dependencies with one API.

What it is

OpenTelemetry is a CNCF project that standardizes instrumentation. It gives you SDKs, auto-instrumentation, the OpenTelemetry Collector, and semantic conventions so telemetry data looks the same across languages and backends.

Why it exists

AI platforms often split observability across multiple tools. OTel reduces that fragmentation by giving your services one instrumentation layer that can export to Prometheus, Grafana, Jaeger, or any vendor backend.

How it works

Applications create spans and metrics through OTel SDKs. A Collector receives the data, processes or batches it, then exports it to backends. That makes it easy to add traces to model inference chains or measure token usage without vendor lock-in.

Key features

  • Traces, metrics, logs under one API.
  • Collector pipeline for transform and export.
  • Semantic conventions for consistent naming.
  • Language SDKs for most production stacks.

Quick start

from opentelemetry import trace
tracer = trace.get_tracer(__name__)
with tracer.start_as_current_span("llm.request"):
    ...

When to use, when to skip

Use it whenever you need portable instrumentation for AI services. Skip it if you're only collecting one metric and don't need traces or logs.

heads upInstrumentation standards help, but they do not replace good naming and sampling discipline.

vs / alongside

ToolRoleNote
OpenTelemetryInstrumentation standardVendor-neutral
PrometheusMetrics storeReceives scraped metrics
GrafanaVisualizationReads traces/metrics
LangfuseLLM observabilityHigher-level AI telemetry

References

Verified against OpenTelemetry docs, May 2026.

← AI Native Stack
© cvam — written in plaintext, served warm