Use it to instrument applications and route telemetry to any backend.
OpenTelemetry
OpenTelemetry (OTel) is a vendor-neutral standard of APIs, SDKs, semantic conventions, the OTLP protocol and the Collector for producing and shipping metrics, logs and traces.
1. Collector running: otelcol --config config.yaml validate and its health endpoint.
2. Service sets OTEL_SERVICE_NAME.
3. Exporter endpoint and protocol correct.
4. Data visible in backend.
5. Collector self-metrics for drops.
SDK/auto-instrumentation → OTLP → Collector (receivers, processors, exporters) → backends
Typical failures are endpoint/protocol mismatches, TLS/auth errors, processors dropping/renaming fields, exporter backpressure, excessive batching memory, duplicate agent+SDK instrumentation and believing successful export means the backend indexed the data. Preserve the first divergent observation and repeat the same bounded verification after remediation.
Continue only after interpreting the current observation.Context & applicabilityCommon mistakes · platform/version boundaries
Observability owns OpenTelemetry pipeline mechanics. Application/runtime Domains own instrumentation placement and the meaning of emitted state.
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Verification workflow Verify boundary
Trace one sample from instrumentation to Collector receiver, processor pipeline and exporter. Check Collector health/logs, queue/retry/drop counters, resource attributes and backend arrival. Compare agent and gateway responsibility so failures are localized to the right hop.
Step 2 Failure signatures and limits Narrow the fault
Typical failures are endpoint/protocol mismatches, TLS/auth errors, processors dropping/renaming fields, exporter backpressure, excessive batching memory, duplicate agent+SDK instrumentation and believing successful export means the backend indexed the data.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
Subtopics
Go one level deeper into this subject.
OpenTelemetry SDKs are configured mostly through environment variables that set service name, exporter endpoint, protocol and sampler.
Subtopic OTLP ProtocolOTLP is the OpenTelemetry protocol for sending traces, metrics and logs over gRPC (port 4317) or HTTP (port 4318).
Subtopic OpenTelemetry Auto-InstrumentationAuto-instrumentation adds tracing and metrics to common frameworks and clients without code changes, using an agent or a Kubernetes operator injection.
Set service.name and resource attributes on every service. Send to a local Collector rather than directly to vendors. Follow semantic conventions for attribute names.
otelcol --config config.yaml validate— first check for this topiccurl -s localhost:9090/-/ready— Prometheus readycurl -s 'localhost:9090/api/v1/query?query=up'— scrape targets up/downpromtool check config prometheus.yml— config valid
ReferenceWhat it is1 section · depth on demand
Operating model
OpenTelemetry standardizes instrumentation and telemetry transport across traces, metrics and logs. Applications/agents emit through APIs/SDKs or receivers; Collectors receive, process and export data. OTLP is a transport/protocol choice, not a backend or guarantee that telemetry was stored/queryable.
ReferenceHow it works1 section · depth on demand
In depth
OpenTelemetry (OTel) is the open, vendor-neutral standard for generating and collecting telemetry — traces, metrics and logs — with APIs, SDKs for many languages, automatic instrumentation and the OpenTelemetry Collector. It avoids lock-in to a single monitoring vendor's agents.
| Component | Role |
|---|---|
| API/SDK | Instrument applications |
| Auto-instrumentation | Zero-code instrumentation for common frameworks |
| OTLP | Standard protocol for sending telemetry |
| Collector | Receive, process (batch, filter, enrich, sample) and export to back ends |
| Semantic conventions | Standard attribute names (service.name, http.response.status_code) |
# otel-collector config (excerpt)
receivers: { otlp: { protocols: { grpc: {}, http: {} } } }
processors: { batch: {}, memory_limiter: { check_interval: 1s, limit_percentage: 80 } }
exporters: { otlphttp: { endpoint: https://otel-backend.example.com } }
service:
pipelines:
traces: { receivers: [otlp], processors: [memory_limiter, batch], exporters: [otlphttp] }
ReferenceImportant terms & boundaries1 section · depth on demand
Scope map
- API/SDK responsibility
- Collector architecture
- OTLP
- Receivers
- Processors
- Exporters
- Agent vs gateway deployment
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Configuration & expected output
Concrete examples are shown only when the stored reference contains an actual configuration or output shape for this Topic.
Configuration example
Assumptions: Backends reachable at the given endpoints.
receivers:
otlp:
protocols:
grpc: {endpoint: 0.0.0.0:4317}
http: {endpoint: 0.0.0.0:4318}
processors:
memory_limiter: {check_interval: 1s, limit_mib: 512}
batch: {}
exporters:
otlphttp/traces: {endpoint: http://tempo:4318}
prometheusremotewrite: {endpoint: http://prometheus:9090/api/v1/write}
service:
pipelines:
traces: {receivers: [otlp], processors: [memory_limiter, batch], exporters: [otlphttp/traces]}
metrics: {receivers: [otlp], processors: [memory_limiter, batch], exporters: [prometheusremotewrite]}Expected output
curl -s http://localhost:8888/metrics | grep -E "otelcol_exporter_(sent|send_failed)_spans"Expected state: Spans are sent and none fail to export.
otelcol_exporter_sent_spans{exporter="otlphttp/traces"} 17990
otelcol_exporter_send_failed_spans{exporter="otlphttp/traces"} 0Accepted at the receiver but failed at the exporter means data is being dropped inside the collector. Illustrative authored output: field layout matches the tool, values will differ in your environment.Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Documentation verification: confirms the upstream model used by the Topic. It does not assert local production behavior.
Basis: https://opentelemetry.io/docs/ · confidence 92%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
OpenTelemetry verification boundary matrix
A compact lookup separating intent, owning component state, effective state and consumer-visible outcome for OpenTelemetry.
| Boundary | Inspect | Healthy interpretation | Do not infer |
|---|---|---|---|
| Intent | API/SDK responsibility | Intended object/scope is explicit and versioned where relevant | Intent is already effective |
| Owning runtime/control plane | Collector architecture / OTLP | Owner accepts and reports the expected object state | Downstream dependencies are healthy |
| Effective state | Receivers | Independent read-back matches the intended state | Every client sees the same result |
| Consumer outcome | Processors | The original bounded check succeeds in the same time window | Production correctness outside this scope |
Deep reference
Design & tradeoffs
Scope
Observability owns OpenTelemetry pipeline mechanics. Application/runtime Domains own instrumentation placement and the meaning of emitted state.