What is the difference between the OpenTelemetry SDK and the Collector? [Advanced]
Answer
The OpenTelemetry SDK runs in or beside the application to create telemetry, while the Collector is a separate service or agent that receives, processes, and exports telemetry. The SDK is for instrumentation; the Collector is for pipeline control.
Technical explanation
SDKs implement APIs, sampling, span creation, metric readers, resource attributes, and exporters inside the application process.
The Collector supports receivers, processors, exporters, and extensions for routing, batching, filtering, enrichment, and sampling.
Using the Collector prevents every application from needing direct credentials and backend-specific configuration.
Hands-on example
Example: application SDK exports OTLP to a local Collector agent. The agent batches and forwards to a gateway Collector. The gateway performs tail sampling, PII filtering, tenant routing, and exports to observability backends. App teams only configure service name and endpoint.
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 head-based versus tail-based sampling for traces? [Advanced]
- What is distributed tracing, and what is a span and a trace? [Advanced]
- How do you build alerts in Wavefront, and what is a smart alert? [Advanced]
- What is cardinality cost, and how does it differ between metrics and logs? [Advanced]
- How does Wavefront handle high-cardinality metrics compared to Prometheus? [Advanced]
- What is the Wavefront proxy, and why use it? [Advanced]
- What is Wavefront (Tanzu Observability), and what is it used for? [Advanced]
- How do you correlate logs and metrics during an incident? [Advanced]