Why does OpenTelemetry's GenAI semantic-convention spec matter for choosing an observability stack in 2026?
Explain why OpenTelemetry's GenAI semantic-convention spec matters for picking an observability stack in 2026, and what specifically you lose by going with a proprietary surface like LangSmith instead.
OTel's GenAI conventions standardise LLM-trace attribute names so any conformant backend reads them. Instrument once, switch vendors via exporter config, dodge proprietary lock-in.
Imagine every electrician used a different colour code for live, neutral, and earth wires. To swap from one electrician to another, you'd have to rewire every socket in the house. Then everyone agreed on a shared colour code, black, red, green, and now any electrician can plug into any house and read the wires correctly. OpenTelemetry's GenAI conventions are that shared colour code for LLM traces. Once your code emits standard attribute names, any monitoring vendor that reads OpenTelemetry can use your traces. If you instead used a vendor whose colours only their own electricians can read, leaving them means rewiring the house.
Detailed answer & concept explanation~5 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
6 minutes: what the GenAI conventions standardise, why trace format is the lock-in, the leading conformant instrumentation libraries, and the LangSmith counterexample.
# Emit OTel GenAI traces from LangChain without LangSmith lock-in
from opentelemetry import trace
from opentelemetry.sdk.trace import TracerProvider
from opentelemetry.sdk.trace.export import BatchSpanProcessor
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter
from openinference.instrumentation.langchain import LangChainInstrumentor
provider = TracerProvider()
provider.add_span_processor(
BatchSpanProcessor(
OTLPSpanExporter(endpoint="https://your-backend/v1/traces")
)
)
trace.set_tracer_provider(provider)
# One line wires LangChain to emit OTel GenAI conventions on every call
LangChainInstrumentor().instrument()
# Now switch backends by changing the exporter endpoint: Langfuse, Phoenix,
# Datadog, Honeycomb, Grafana Tempo all parse the same trace shape.| Aspect | OTel GenAI conventions | LangSmith (proprietary) |
|---|---|---|
| Trace format | Open spec, vendor-neutral | Proprietary, LangChain-coupled |
| Backend portability | Langfuse, Phoenix, Datadog, Honeycomb, Tempo | LangSmith only |
| Instrumentation effort | Once, with OTel SDK or OpenInference/OpenLLMetry | Implicit via LangChain callbacks |
| Cost to switch backend | Exporter config change | Full re-instrumentation |
| Best fit | Multi-vendor or open-source observability | Teams committed to LangChain + LangSmith ecosystem |
Real products, models, and research that use this idea.
- Langfuse natively ingests OTel GenAI conventions and renders the standard attributes (system, model, token counts, finish reasons) without per-vendor mapping.
- Arize Phoenix is OTel-native and uses the GenAI conventions as its primary trace format, with OpenInference as the complementary spec for LLM-specific events.
- Datadog APM added GenAI conventions support in 2025; spans emitted from any OTel-conformant LLM SDK render in the GenAI Monitoring dashboard without custom mapping.
- OpenInference (by Arize) and OpenLLMetry (by Traceloop) are the two leading OTel-conformant instrumentation libraries that emit GenAI conventions from LangChain, LlamaIndex, OpenAI SDK, and Anthropic SDK without code changes.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you migrate an existing LangChain + LangSmith codebase to OTel GenAI conventions?
QWhat about PII and prompt content in traces. How do the GenAI conventions handle it?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Treating observability vendor choice as a dashboard decision rather than a trace-format decision. And discovering, when migration is needed, that the trace shape itself is the lock-in.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.