Skip to content
syntaqx

Observability, chapter 05 of 09

Instrumenting with OpenTelemetry

API and SDK, zero-code agents and the Kubernetes Operator, resources, failing open, semantic conventions, OTLP, propagation, signal status and GenAI spans.

18 min readUpdated

OpenTelemetry is the standard way to get traces, metrics and logs out of a service. It defines an API to record telemetry, SDKs that implement it in each language, instrumentation for the common libraries and frameworks, a wire protocol (OTLP), and a Collector to receive, process and forward it. It is "not an observability backend itself": "the backend (storage) and the frontend (visualization) of telemetry data are intentionally left to other tools," open source or commercial.

That split is why I default to it. Instrumentation is the expensive part to write and the hardest to change, and with OpenTelemetry it's written once against a vendor-neutral API; where the data goes is configuration. This page is the instrumentation side: how a service produces telemetry, with agents or with code, and what every service has to configure. What to put in spans is Tracing & Sampling, and what to put in log records is Logs.

API and SDK#

The specification overview separates two things that are easy to conflate:

  • The API "consist[s] of the cross-cutting public interfaces used for instrumentation": get a tracer, start a span, record a metric, emit a log record.
  • The SDK "is the implementation of the API provided by the OpenTelemetry project": samplers, processors, exporters, resource detection.

The rule that follows: "Instrumentation authors MUST NOT directly reference any SDK package of any kind, only the API." A library depends on the API alone, and "when the SDK is not installed, the API calls should be no-ops which generate minimal overhead" (library guidelines). So a shared library can be instrumented without forcing a telemetry pipeline on every application that uses it, and the application decides once, at startup, whether and where telemetry goes.

My rules for a codebase: shared libraries import only the API; each deployable service configures the SDK in one place (its entry point, or an agent); nobody constructs exporters in business code.

Zero-Code and Code-Based Instrumentation#

There are two ways in, and OpenTelemetry says plainly that "you can use both solutions simultaneously":

  • Zero-code instrumentation "adds the OpenTelemetry API and SDK capabilities to your application," typically "as an agent or agent-like installation," using "bytecode manipulation, monkey patching, or eBPF." It captures what crosses the edges of the application: "requests and responses, database calls, message queue calls."
  • Code-based instrumentation uses the API directly and gives "deeper insight and rich telemetry from your application itself": the business decisions, the IDs, the steps that matter.

"Zero-code solutions are great for getting started, or when you can't modify the application." My default for a new service is the agent for the edges plus a handful of manual spans and attributes for what only the code knows.

Zero-Code Agents by Language

Each language's agent is a different mechanism with the same result: the service starts with the SDK configured and the common libraries instrumented. These are the documented starts, configured through the standard environment variables below. Go and Rust have no agent to start, so their tabs show the packages to instrument in code:

# No agent: wrap servers and clients in code (see Go below)
go get go.opentelemetry.io/otel go.opentelemetry.io/otel/sdk \
  go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp \
  go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp

What each one needs to know:

  • Java. The agent rewrites bytecode at class load. Settings are system properties (-Dotel.service.name) or the equivalent environment variables, and the agent docs show both. Extensions "add capabilities to the agent without having to create a separate distribution," loaded with -Dotel.javaagent.extensions=/path/to/my-extension.jar: custom samplers, span processors that redact, instrumentation for an in-house library. Individual instrumentations are switched off with otel.instrumentation.[name].enabled=false, and otel.instrumentation.common.default-enabled=false flips the default so you enable only what you list.
  • .NET. An install script puts the runtime in $HOME/.otel-dotnet-auto, and instrument.sh sets the environment the .NET runtime needs to load it; a PowerShell module does the same on Windows, and the OpenTelemetry.AutoInstrumentation NuGet package ships it inside the application instead. The .NET docs verify the installer's release attestation before running it, which is the step worth copying.
  • Python. opentelemetry-bootstrap -a install inspects the installed packages and installs the matching instrumentation libraries, and opentelemetry-instrument wraps the process.
  • Node.js. --require loads the instrumentation before the application's own modules, which is what lets it patch them; NODE_OPTIONS="--require @opentelemetry/auto-instrumentations-node/register" does the same without changing the start command. OTEL_NODE_ENABLED_INSTRUMENTATIONS="http,express" limits it to what you use, which matters for startup time.
  • PHP. Auto-instrumentation needs the opentelemetry PHP extension, which provides the hooks, plus a Composer package per framework or library.
  • Go. Go compiles to a static binary with no runtime to hook, so the Go zero-code options are different in kind: eBPF from outside the process (OBI, below), compile-time instrumentation, and an "Auto SDK" to "integrate manual spans with zero-code eBPF spans." The page describes the project as "currently work in progress." For Go, I instrument in code with the instrumentation libraries for net/http, gRPC and the database driver.
  • Rust. OpenTelemetry's zero-code section has no Rust entry, so Rust is instrumented in code like Go, with the opentelemetry crates. Check the maturity first: the Rust page lists metrics and logs as Stable but traces as Beta.

The Kubernetes Operator

On Kubernetes, the OpenTelemetry Operator injects the agents for you. An Instrumentation resource says where telemetry goes and how to sample; an annotation on a workload says which language agent to inject:

apiVersion: opentelemetry.io/v1alpha1
kind: Instrumentation
metadata:
  name: default
spec:
  exporter:
    endpoint: http://otel-collector:4318
  propagators:
    - tracecontext
    - baggage
  sampler:
    type: parentbased_traceidratio
    argument: "0.25"
---
# On the Deployment's pod template:
spec:
  template:
    metadata:
      annotations:
        instrumentation.opentelemetry.io/inject-java: "true"

The annotations are inject-java, inject-python, inject-nodejs and inject-dotnet, set on a pod template or on a namespace to cover everything in it. Go injection runs the eBPF instrumentation as a privileged sidecar, needs the otel-go-auto-target-exe annotation naming the binary, is behind a feature gate that is off by default, and doesn't support multi-container pods. The Operator's docs note that "in most cases, you will need to install cert-manager" for its admission webhook. Watch the ports in the docs: the Node.js agent is documented with gRPC on 4317 and the others with HTTP on 4318.

The same Operator manages Collectors through an OpenTelemetryCollector resource (opentelemetry.io/v1beta1) whose mode is a Deployment (the default), a DaemonSet, a StatefulSet or a sidecar, and a pod annotated sidecar.opentelemetry.io/inject: "true" gets a sidecar Collector. Choosing between those is Running the OpenTelemetry Collector.

eBPF Instrumentation (OBI)

OpenTelemetry eBPF Instrumentation (OBI) watches processes from the kernel and produces spans and RED metrics (rate, errors, duration) without touching the application, in any language. Grafana Labs donated its Beyla project to OpenTelemetry in 2025 to start it. It understands protocols on the wire rather than code: HTTP and HTTP/2, gRPC, Kafka, NATS, MQTT, PostgreSQL, MySQL, MSSQL and Redis on both sides, and several more as a client only. It needs Linux 5.8 or later with BTF (or a RHEL-family 4.18 kernel with the backports), and either root or a set of capabilities including CAP_BPF, CAP_PERFMON and CAP_SYS_PTRACE.

As of October 2026 the project says "OBI is currently in Development" and is still on 0.x versions, with breaking changes possible between minor releases. I use it for what has no agent (a Go or Rust service nobody can change this quarter, a third-party binary) and to see the whole cluster's traffic on day one; its docs themselves send you to "language agents or manual instrumentation when you need custom spans." The privilege it needs is a security decision, made like any other privileged DaemonSet (Kubernetes).

When an Agent Isn't Enough

An agent sees calls, not meaning. It knows a POST took 2 seconds and the database was queried 40 times; it doesn't know which customer, which payment, which feature flag or why. It also can't:

  • Name the business operation inside a generic handler (one RPC endpoint that dispatches twenty commands).
  • Propagate context through anything it doesn't recognize: a custom queue, a job table, a homegrown RPC.
  • Decide what's sensitive. Agents capture what their instrumentation captures; redaction is yours (Logs, and the Collector's redaction).
  • Avoid cost you didn't want. An agent instruments every library it finds, including the chatty ones; enable explicitly in production.

Mixing Agents and Manual Spans

The agent registers the global SDK, so manual code uses the API and its spans join the agent's trace with no extra setup. The two operations I use most are enriching the span the agent already created and wrapping a business step in a span of its own:

// otelhttp's server span is in the request's context
trace.SpanFromContext(ctx).SetAttributes(attribute.String("app.payment.id", paymentID))

ctx, span := otel.Tracer("payments").Start(ctx, "choose_processor")
defer span.End()
span.SetAttributes(attribute.String("app.processor", processor))

The Java agent's API page recommends the @WithSpan annotation for most cases over hand-built spans. Whatever the language, a manual span must end on every path, including exceptions; the context-manager and callback forms do that for you.

Resources Say Who Sent It#

Every span, metric point and log record carries a resource: attributes describing the entity that produced it. They are what let you filter all three signals to one service, one version and one environment, and they're the most important configuration a service has. From the service conventions and the deployment attribute registry:

Attribute Status Value
service.name Stable, required The logical service: payments-api
service.version Stable The build: a version or commit SHA
service.namespace Stable A group of services owned together: payments
service.instance.id Stable This process or pod, unique
deployment.environment.name Stable production, staging; it replaced deployment.environment, now deprecated

Without service.name, SDKs "MUST fallback to unknown_service: concatenated with the process executable name," which is how dashboards fill up with unknown_service:java. Set it explicitly, everywhere. Resource detectors add the host, container, cloud and Kubernetes attributes; in a cluster, the Collector's k8sattributes processor adds pod, namespace and workload names (Running the OpenTelemetry Collector).

Configuring with Environment Variables#

The SDKs and agents read the same environment variables, so one deployment template configures a service in any language:

OTEL_SERVICE_NAME=payments-api
OTEL_RESOURCE_ATTRIBUTES=service.version=2026.10.28,deployment.environment.name=production
OTEL_EXPORTER_OTLP_ENDPOINT=http://localhost:4318
OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf
OTEL_TRACES_SAMPLER=parentbased_traceidratio
OTEL_TRACES_SAMPLER_ARG=0.25
  • OTEL_SERVICE_NAME "takes precedence" over a service.name in OTEL_RESOURCE_ATTRIBUTES.
  • OTEL_EXPORTER_OTLP_ENDPOINT defaults to http://localhost:4318 for HTTP and http://localhost:4317 for gRPC, and the exporter spec says the default protocol "SHOULD be http/protobuf" unless an SDK has strong reasons such as backward compatibility to keep another, so set the protocol explicitly. With this general variable, the SDK appends /v1/traces, /v1/metrics and /v1/logs itself; the per-signal variables take the full URL.
  • OTEL_TRACES_SAMPLER defaults to parentbased_always_on; OTEL_TRACES_SAMPLER_ARG is the ratio for the ratio samplers (Head or Tail Sampling).
  • OTEL_EXPORTER_OTLP_HEADERS (key1=value1,key2=value2) carries a backend's API key when exporting directly. It is a secret; it comes from the secret store, never from a committed file (Environments & Configuration).
  • OTEL_PROPAGATORS defaults to tracecontext,baggage.

Declarative Configuration

Environment variables run out of expressiveness quickly: you can't describe two exporters, a redacting processor or a per-route sampler in them. The declarative configuration is a YAML file, pointed to by OTEL_CONFIG_FILE, that describes the whole SDK:

file_format: "1.2"
resource:
  attributes_list: ${OTEL_RESOURCE_ATTRIBUTES}
propagator:
  composite:
    - tracecontext:
    - baggage:
tracer_provider:
  sampler:
    parent_based:
      root:
        always_on:
  processors:
    - batch:
        exporter:
          otlp_http:
            endpoint: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://localhost:4318}/v1/traces

Its data model is Stable, and the docs say "the declarative configuration schema is stable," with anything still experimental carrying a /development suffix; but "support for declarative configuration in various implementations is still experimental," and Java is the one SDK the page lists. When the file is set, the SDK ignores the other OTEL_* variables except those substituted into the file with ${...}. My default as of October 2026: environment variables everywhere, and the file only where an SDK supports it and the variables can't express what I need.

Failing Open#

Telemetry runs inside every request, so a telemetry outage must never become an application outage. The error handling principles say the same: implementations "MUST NOT throw unhandled exceptions at runtime," the API or SDK "MAY fail fast and cause the application to fail on initialization" but "MUST NOT cause the application to fail later at runtime," and "users would prefer to lose telemetry data rather than have the library significantly change the behavior of the instrumented application." The spec guarantees that much; the configuration and the deployment decide whether an outage costs a few minutes of data or your latency and memory.

My rule: every hop between a request and the backend is bounded in time and memory, and drops what it can't hold. Here is what each failure costs when that holds:

What fails What the application sees What bounds it
The backend or vendor Nothing The gateway's sending queue and persistent queue (Not Losing Data)
The gateway tier Nothing The agent's sending queue, which drops when full
The node agent or sidecar Collector Failed exports in the background The SDK's export timeout and bounded queue (below)
An overloaded Collector Refused exports, retried in the background The Collector's memory_limiter and the same SDK bounds
The Operator's injection webhook Pods start without instrumentation A fail-open webhook (below)
The SDK or agent itself Whatever the bug does A kill switch that needs no build (below)

Bounding the SDK

Use the batch processor, never the simple one, in production. The trace SDK spec has a simple processor that passes spans to the exporter "as soon as they are finished" and a batching processor that "create[s] batches of finished spans." A processor's OnEnd "MUST be called synchronously within the" Span.End() call, so the simple processor puts an export on every span's end. The batch processor queues the span and exports later, off the request's path. Getting-started examples sometimes wire the simple processor or a console exporter; neither belongs in production. The declarative file above uses batch. The logs SDK has the same pair, and its OnEmit runs "synchronously on the thread that emitted the LogRecord," so the same rule applies.

Know the bounds, and set them deliberately. The batch processors' queues are bounded and drop when full ("After the size is reached, spans are dropped"), and every export has a timeout (SDK environment variables, OTLP exporter):

Variable Default What it bounds
OTEL_BSP_MAX_QUEUE_SIZE 2048 Spans held in memory while the exporter is failing
OTEL_BSP_EXPORT_TIMEOUT 30000 (ms) One span export
OTEL_BLRP_MAX_QUEUE_SIZE 2048 Log records held in memory
OTEL_BLRP_EXPORT_TIMEOUT 30000 (ms) One log export
OTEL_METRIC_EXPORT_TIMEOUT 30000 (ms) One metric export
OTEL_EXPORTER_OTLP_TIMEOUT 10s "Each batch export, including all request attempts and waits between retries"

The exporter must retry transient errors with "an exponential back-off with jitter to avoid overwhelming the destination," and Export() "MUST NOT block indefinitely." Together that means a dead Collector costs a full queue of memory (queue size times your span size, so large attributes make it larger) and a background thread waiting on timeouts, and nothing on the request. The defaults are sane; I set them explicitly in the deployment template so they're visible and reviewed, and I lower the queue on memory-tight services rather than raise it.

Bound shutdown too. Shutdown and ForceFlush "SHOULD complete or abort within some timeout." Flush after the server has drained its requests, with a timeout shorter than what's left of the pod's grace period (Graceful Shutdown), so an unreachable Collector can't hold a deploy hostage.

Keep logs on stdout as well. A log record sent only over OTLP is lost once the queue drops it. Logs written to stdout and collected from the container's log files by the node agent (Running the OpenTelemetry Collector) survive an agent restart, because the file is the buffer.

Collector Outages Close to the Application

A node agent that's down fails the SDK's exports quickly (connection refused), and the bounds above take over. If services reach the DaemonSet through a Service with internalTrafficPolicy: Local, "the Service behaves as if it has zero endpoints (for Pods on this node)" when that node's agent is down: the data from that node is lost until it's back, and nothing else is affected.

A sidecar Collector is in the pod's fate. Declare it as a native sidecar (an init container with restartPolicy: Always, stable since Kubernetes 1.33): "the kubelet postpones terminating sidecar containers until the main application container has fully stopped," so the final flush has somewhere to go. But "if a readinessProbe is specified for this init container, its result will be used to determine the ready state of the Pod." A readiness probe on a telemetry sidecar takes the application out of the load balancer when telemetry breaks. Give it a liveness probe, not a readiness probe.

The Operator's Webhook

Agent injection runs through a mutating admission webhook, which sits on the path of every pod creation in the namespaces it covers. The Operator's Helm chart sets the pod webhook to failurePolicy: Ignore and explains both options: "Ignore, the injection is fail-open. The pod will be created, but the sidecar won't be injected," and "Fail, the injection is fail-close. If the webhook pod is not ready, pods cannot be created." Keep it Ignore. With Fail, an Operator outage or an expired cert-manager certificate stops deploys, scale-ups and rescheduled pods across the cluster. If you install the Operator another way, check the failurePolicy on its MutatingWebhookConfiguration. The cost of Ignore is pods started during the outage run uninstrumented until their next restart, which shows up as a service going quiet in traces.

A Kill Switch

When the SDK or an agent is the problem (a memory leak, an instrumentation that breaks a library, a startup cost you can't afford during an incident), turning it off has to be a configuration change, not a build. The spec's OTEL_SDK_DISABLED=true disables "the SDK for all signals," leaving the API as a no-op; check that your language's SDK honors it before you rely on it. The Java agent has its own: OTEL_JAVAAGENT_ENABLED=false (or -Dotel.javaagent.enabled=false) "to disable the agent entirely." Both take effect on restart, so they ride a normal rollout. With the Operator, removing the inject annotation and restarting does the same.

Test it. In staging, under load: stop the node agent, then make the gateway unreachable, then fill the Collector's memory limit. The pass condition is that request latency and error rate don't move and the application's memory stays flat once the SDK's queue is full; the only signal should be the Collector's drop and failure metrics (Monitoring the Collector).

Semantic Conventions#

Semantic conventions are the agreed names: http.request.method, http.route, db.system.name, messaging.operation.type. They're what let one dashboard, one alert or one vendor feature work across services written by different teams in different languages. Use them before inventing names, and put your own attributes in your own namespace (app. or a company prefix).

Each area has a stability status, and it matters because unstable names change:

Area Status
HTTP spans Stable
Database spans Stable, except where marked
RPC Release Candidate
Messaging Development
GenAI Development, in its own repository (below)

When an area stabilizes, instrumentations move with an opt-in: OTEL_SEMCONV_STABILITY_OPT_IN takes values such as http ("emit the new, stable HTTP and networking conventions") or http/dup ("emit both the old and the stable"), and the same pattern for database and messaging. The /dup mode is the migration path: emit both, move dashboards and alerts to the new names, then switch to the stable set. Nothing breaks silently if you treat a convention upgrade like a schema migration (Zero-Downtime Migrations is the same expand-and-contract idea).

OTLP#

OTLP is the protocol between SDKs, Collectors and backends. It is "Stable for the trace, metric and log signals" and "Development for the profiles signal," over gRPC or HTTP, where "OTLP/HTTP uses Protobuf payloads encoded either in binary format or in JSON format." The default ports are 4317 for gRPC and 4318 for HTTP, and the HTTP paths are /v1/traces, /v1/metrics and /v1/logs. Most backends now accept OTLP directly, which is what makes switching them a configuration change. I use HTTP/protobuf unless there's a reason not to: it passes through every proxy and load balancer that understands HTTP.

Vendor Neutrality, and What It Doesn't Buy#

OpenTelemetry is "vendor- and tool-agnostic," and the instrumentation you write against it is portable. It doesn't make everything portable:

  • Dashboards, alerts and queries are written in each backend's own language. Moving backends means rewriting them, and they're often most of the work.
  • Vendor features built on top (automatic service maps, AI-assisted root cause, profiling views) are each vendor's own.
  • Vendor distributions of agents and Collectors add components and defaults; using their extras ties you to them the same way a proprietary agent would (distributions).
  • Cost is still metered by each vendor in its own units: hosts, gigabytes, spans, active series. The vendor side, and how each one meters, is the Hosting & Cloud book's Observability Platforms.

What it does buy is the expensive part: the instrumentation in every service, and the option to send the same data to two backends during a migration from a Collector.

Context Propagation#

Propagation is how one service's span becomes the next service's parent. The default propagators are W3C Trace Context and W3C Baggage.

Trace Context has been a W3C Recommendation since 23 November 2021. Its traceparent header is version-traceid-parentid-flags, with a 16-byte trace ID and an 8-byte parent ID in hex:

traceparent: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01
tracestate: ot=th:c

The last field's low bit says whether the caller sampled the trace, which is how ParentBased samplers agree. tracestate carries vendor-specific values, at most 32 list members; OpenTelemetry's own entry (ot=) carries the sampling threshold.

Baggage carries application key-value pairs alongside the trace: a tenant ID, a feature flag, a synthetic-traffic marker. The specification is a Candidate Recommendation (snapshot of 30 May 2024), with minimum limits of 64 list members and 8,192 bytes. It comes with real risks:

  • It leaves your system. The spec warns that "the baggage header can contain user-identifiable data" and "keys and values can be propagated to other systems"; OpenTelemetry's baggage docs say "sensitive Baggage items can be shared with unintended resources, like third-party APIs." Every instrumented HTTP client sends it to every host it calls.
  • It isn't on your spans. Baggage is "unassociated with attributes on spans, metrics, or logs without explicitly adding them," so putting a value in baggage doesn't make it searchable.
  • It's caller-controlled input. A request from outside can arrive with any baggage it likes.

My rules: no personal data, secrets or authorization decisions in baggage, ever; strip inbound baggage (and decide deliberately whether to trust inbound traceparent) at the edge from the internet; don't propagate either to third parties; and copy the few values worth searching onto spans explicitly.

Signal Status in October 2026#

The specification status and the per-language status pages, as read on 28 October 2026:

Signal Specification Languages
Traces API, SDK and protocol stable Stable in most languages; Rust beta, Kotlin in development
Metrics API and protocol stable, SDK mixed Stable in C++, .NET, Go, Java, JavaScript, PHP, Python and Rust; in development elsewhere
Logs Bridge API, SDK and protocol stable Stable in C++, .NET, Java, PHP and Rust; Go a release candidate; JavaScript, Python, Ruby and others in development
Profiles Protocol in development Java only, in development

Profiles entered public alpha in 2026, and OpenTelemetry's announcement says "the signal should not be used for critical production workloads" (Errors & Profiling). The practical reading: traces are safe everywhere, metrics nearly everywhere, and logs depend on the language, which is one more reason to keep your existing logging library and add the OpenTelemetry bridge (Logs) rather than rewrite logging around a development-status API.

GenAI Calls#

LLM calls are outbound calls with unusual cost and latency, and they deserve the same instrumentation as a payment processor call. OpenTelemetry's GenAI conventions cover them, but in October 2026 they are in flux: they "have moved to the OpenTelemetry GenAI semantic conventions repository" (semantic-conventions-genai), and the client inference spans are "Development."

The attributes that matter, as that repository defines them:

Attribute What it records
gen_ai.operation.name chat, embeddings, and so on
gen_ai.provider.name The provider; it replaced gen_ai.system
gen_ai.request.model / gen_ai.response.model The model asked for, and the model that answered
gen_ai.usage.input_tokens / gen_ai.usage.output_tokens Tokens consumed, which is the cost

Span names "SHOULD be {gen_ai.operation.name} {gen_ai.request.model}," and the conventions define duration and token-usage metrics beside the spans. The metric names changed during the move to the new repository: its pending changelog replaces the gen_ai.client.token.usage histogram and its gen_ai.token.type attribute "with separate per-direction, per-operation token usage histograms," adds gen_ai.client.inference.duration, and renames the time-to-first-chunk and time-per-output-chunk metrics to gen_ai.client.inference.*. Those entries sit under "Unreleased" and the repository has no tagged release yet, so I pin the instrumentation version and treat the names as unstable. Latency of the full response and time to first token both matter for streaming responses; record both.

Prompts and completions are opt-in. The conventions say instrumentations "SHOULD NOT capture them by default, but SHOULD provide an option for users to opt in," because message content "is likely to contain sensitive information including user/PII data," and they recommend storing content externally with a reference on the span. My default is off, with token counts, model and outcome always on; content capture is a reviewed decision with its own retention, the same as any other personal data (AI & LLM Security, AI Agents in the Product).

Checklist#

  • Libraries depend on the API only; each service configures the SDK in one place.
  • Agents cover the edges; manual spans and attributes cover business decisions.
  • Production agents enable only the instrumentations the service uses.
  • service.name, service.version and deployment.environment.name are set on every service.
  • Configuration comes from the standard OTEL_* variables, with exporter headers from the secret store.
  • Batch processors only; queue sizes and export timeouts set explicitly; shutdown flush bounded by the grace period.
  • The Operator's pod webhook is fail-open (failurePolicy: Ignore); sidecar Collectors have no readiness probe.
  • OTEL_SDK_DISABLED (or the agent's own switch) can turn telemetry off with a rollout, and stopping the Collector in staging doesn't move latency or memory.
  • Semantic conventions before custom names; custom names in your own namespace; stability opt-ins migrated deliberately.
  • Services export OTLP to a local Collector, not straight to a vendor.
  • Baggage carries no personal data or secrets, and is stripped at the edge and never sent to third parties.
  • GenAI spans record model, provider and tokens; prompt and completion capture is off unless reviewed.

References#

Specifications

In practice