OpenTelemetry
ELI5 — The Vibe Check
OpenTelemetry is the universal standard for collecting traces, metrics, and logs from your apps. Instead of being locked into Datadog or New Relic's proprietary stuff, OTel gives you one set of SDKs that works with any backend. It's like USB-C for observability.
Real Talk
OpenTelemetry (OTel) is a vendor-neutral, open-source observability framework for generating, collecting, and exporting telemetry data (traces, metrics, logs). It provides APIs, SDKs, and the OTel Collector for processing and routing data to any compatible backend. It merged the OpenTracing and OpenCensus projects under the CNCF.
Show Me The Code
import { trace } from '@opentelemetry/api';
const tracer = trace.getTracer('my-service');
const span = tracer.startSpan('process-order');
try {
await processOrder(order);
span.setStatus({ code: SpanStatusCode.OK });
} finally {
span.end();
}
When You'll Hear This
"We instrumented everything with OpenTelemetry so we can switch observability backends freely." / "OTel auto-instrumentation captures HTTP, database, and gRPC calls without code changes."
Related Terms
Distributed Tracing
Distributed tracing is request tracing's big brother — it works across multiple services, servers, and even data centers.
Jaeger
In a microservices system, a user request might touch 15 services before returning. When it's slow, which service is the culprit?
Metrics
Metrics are the numbers your app tracks about itself over time — requests per second, error rate, CPU usage, response time, active users.
Observability
Observability is the ability to understand what's happening inside your system from the outside, using three types of data: metrics (numbers), logs (events...