OpenTelemetry Interview Q&A
Q: What problem does OpenTelemetry actually solve?
Before a shared standard, instrumenting with a specific vendor's SDK tied application code directly to that vendor — switching observability providers meant re-instrumenting services from scratch. OpenTelemetry separates the API an application calls from where the data eventually lands, with the Collector handling routing in between, so changing or adding a backend becomes a configuration change rather than a code change across every service.
Q: What's the difference between the OTel API and the OTel SDK?
The API defines the calls available for emitting telemetry; the SDK is the concrete implementation that actually turns those calls into spans, metric data points, and log records. This split matters most for library authors: a shared library can depend on just the lightweight API without forcing every application that uses it to also adopt one specific SDK and backend.
Q: Explain what a span is and how a trace is built from spans.
A span represents one unit of work — an HTTP request, a database query — with a name, start and end time, a trace ID shared across the whole request, and its own span ID. A span created as a result of another span records that span's ID as its parent, and a trace viewer reconstructs the full tree from that parent-child chain, which is how a trace surfaces exactly which nested call was the slow one.
Q: Why would a trace unexpectedly split into two separate traces across a service boundary?
A trace only stays connected if the current trace ID is carried forward on every network hop, typically as an HTTP header. Something sitting between the two services — commonly a proxy, gateway, or load balancer not configured to forward headers it doesn't recognize — can silently strip that header, breaking what should be one trace into two disconnected ones with no error raised anywhere.
Q: What's the difference between head sampling and tail sampling?
Head sampling decides whether to keep a trace right at the start, before anything about that request's outcome is known — cheap to run, but it can discard a trace that turns out, in hindsight, to have been worth keeping. Tail sampling waits until a trace is complete before deciding, which lets a rule deliberately keep every trace involving an error or unusual latency, at the cost of buffering the full trace before making that call.
Q: What's a Collector processor, and name a few beyond the default batch processor.
A processor transforms telemetry in flight, between receiving it and exporting it onward. Beyond batch (grouping data for efficient export), filter drops telemetry matching a condition — dropping health-check spans before export is a common use — attributes adds, renames, or redacts fields, and tail_sampling implements tail sampling at the Collector level rather than inside the application itself.
Q: What are resource attributes, and how do they differ from a span's own attributes?
A resource attribute describes the thing producing the telemetry — service name and version, the pod or host it's running on, the cloud region — set once per process and automatically attached to everything that process emits. A span's own attributes instead describe that specific unit of work. Skip resource attributes and finding which exact pod produced a problem span during an incident becomes a manual exercise in lining up timestamps across systems, instead of a direct filter on data the Collector already had.
Q: Why would an organization run two exporters in the same Collector pipeline?
A common pattern during a backend migration is sending the same telemetry to both the old backend and a new candidate backend simultaneously, by listing both exporters on the same pipeline — this lets the team compare the new backend against the trusted one under real traffic before cutting over, and drop the old exporter once confidence is established, instead of switching blind.
Q: Traces have stopped appearing for one specific service, while every other service's traces are fine. How do you debug this?
Start by confirming the SDK itself is generating spans at all — a temporary debug/console exporter answers that locally, separating "not instrumented" from "instrumented but not reaching the Collector." If spans are generated locally, check the Collector's own received-span count for that specific receiver; a zero there usually points at a wrong OTLP endpoint or port in that service's exporter config, or a sampler or filter processor silently dropping that service's spans specifically.
Q: Why does OpenTelemetry publish semantic conventions for attribute names, and why might you need to double-check them?
Semantic conventions recommend a standard attribute name for each common case, so two teams instrumenting the same kind of thing end up with data that lines up, rather than each team inventing its own naming scheme for the same concept. They're an actively evolving part of the spec too — real attribute-naming changes have landed across semantic-convention revisions — so a name worth double-checking against the current spec rather than trusting from memory.

