What is OpenTelemetry, and what problem does it solve? [Advanced]
Answer
OpenTelemetry is a vendor-neutral observability framework for generating, collecting, processing, and exporting telemetry such as traces, metrics, and logs. It solves the problem of every tool requiring different agents, SDKs, and instrumentation formats.
Technical explanation
OTel provides APIs, SDKs, semantic conventions, instrumentation libraries, the OTLP protocol, and the Collector.
It reduces vendor lock-in because telemetry can be sent to multiple open-source or commercial backends.
It is especially valuable for distributed tracing and consistent resource/service attributes across languages.
Hands-on example
Hands-on: instrument a Java service with the OpenTelemetry Java agent, set OTEL_SERVICE_NAME=checkout and OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4317, then configure the Collector to export traces to Tempo, metrics to Prometheus/Mimir, and logs to Splunk.
Check how well your resume matches the role with our free resume checker— match score, ATS check, and the skills you're missing.
More Observability interview questions
- What is the difference between the OpenTelemetry SDK and the Collector? [Advanced]
- What is head-based versus tail-based sampling for traces? [Advanced]
- How do you build alerts in Wavefront, and what is a smart alert? [Advanced]
- What is distributed tracing, and what is a span and a trace? [Advanced]
- How does Wavefront handle high-cardinality metrics compared to Prometheus? [Advanced]
- What is the Wavefront proxy, and why use it? [Advanced]
- What is cardinality cost, and how does it differ between metrics and logs? [Advanced]
- What is Wavefront (Tanzu Observability), and what is it used for? [Advanced]