Prompt

How do I troubleshoot missing spans in OpenTelemetry

Technology / Observability1 observationLast seen Oct 28, 2026

Latest observation

Oct 28, 2026OpenAI APIWeb search: off

Troubleshooting missing OpenTelemetry spans usually comes down to one of a few categories: instrumentation not running, spans not being sampled, spans not being exported, or spans being dropped/filtered downstream.

Here’s a practical checklist.

1) Confirm instrumentation is actually enabled

  • Make sure the app is using the OpenTelemetry SDK/agent and not just the API.
  • Verify auto-instrumentation is loaded if you expect it.
  • Check that the tracer provider and exporter are initialized early enough in app startup.

Common issue: spans created before OTel is initialized are never captured.

2) Check sampling

If sampling is enabled, some spans may not appear by design.

  • Look at the configured sampler:
    • AlwaysOn / ParentBased(AlwaysOn) → most spans should appear
    • TraceIdRatioBased(0.1) → only ~10% of traces show up
  • If parent span is dropped, child spans may also be dropped depending on sampler behavior.

Test: temporarily set sampling to 100% and see if missing spans appear.

3) Verify the exporter is working

If spans are created but not sent, the exporter may be failing.

  • Check logs for exporter errors or retries.
  • Confirm endpoint/collector address is correct.
  • Validate protocol:
    • OTLP/gRPC vs OTLP/HTTP
    • correct port and path
  • Check TLS/auth headers if using a secured collector.

Examples of failures:

  • wrong endpoint
  • DNS/network connectivity issues
  • collector not listening on the expected port
  • invalid auth token

4) Look for span flushing/shutdown issues

Spans may never get exported if the app exits too quickly.

  • Ensure the SDK is flushed on shutdown.
  • Give batch processors time to export before process exit.
  • In short-lived jobs, use force flush or shutdown hooks.

Common issue: serverless or CLI apps exit before the batch exporter flushes.

5) Check span limits and drops

The SDK may drop spans if limits are exceeded.

  • Max attributes, events, links, or queued spans may be capped.
  • Batch span processor queue may overflow under load.
  • Inspect SDK metrics/logs for dropped spans.

6) Verify context propagation

Sometimes spans exist, but they’re disconnected or not nested as expected.

  • Ensure trace context is propagated across threads, async tasks, queues, HTTP calls, etc.
  • Check for missing headers:
    • traceparent
    • tracestate
  • Ensure baggage/context is passed correctly in your framework.

Symptom: spans show up, but as separate traces instead of one trace.

7) Check if spans are filtered or transformed

Something in the pipeline may be dropping them:

  • collector processors
  • tail sampling
  • attribute-based filters
  • backend ingestion rules

Inspect your OpenTelemetry Collector config for:

  • filter processor
  • probabilistic_sampling
  • tail_sampling
  • attributes processor that may remove data

8) Compare with debug/logging export

A good way to isolate the problem:

  • enable console/debug exporter in addition to your normal exporter
  • if spans appear in console but not in backend, the issue is downstream
  • if they don’t appear in console either, the issue is in instrumentation or SDK config

9) Check resource attributes and service identity

Sometimes spans are there but hard to find due to incorrect service metadata.

  • Confirm service.name
  • Confirm environment, version, instance attributes
  • Look for data under the wrong service in your backend

10) Examine version compatibility

Mismatch between SDKs, instrumentation libraries, collector, and backend can cause issues.

  • Upgrade to compatible versions
  • Check OTLP protocol support
  • Verify any language-specific auto-instrumentation limitations

Fast debugging sequence

If you want a quick path:

  1. Set sampling to 100%
  2. Enable console export
  3. Verify spans appear locally
  4. Check exporter endpoint and collector logs
  5. Confirm shutdown/flush
  6. Inspect collector filters/sampling
  7. Check backend ingestion and service name

If you want, I can also help you troubleshoot by language/runtime

For example:

  • Java
  • Python
  • Node.js
  • .NET
  • Go
  • Rust
  • OpenTelemetry Collector

If you tell me your language, exporter, and where the spans disappear, I can give you a targeted checklist.

Observation history

How did Obsurfable measure this prompt?

Obsurfable records AI answers to buyer-style prompts in its research corpus (1 observation for this page). Metrics are distributions over observations, not a single static ranking.

Which AI systems does Obsurfable collect answers from?

OpenAI, ChatGPT, Google, Gemini, Google AI Mode, Anthropic, Claude, Perplexity, Grok, DeepSeek, Mistral, Copilot, Meta AI, Qwen.

How can brands improve their AEO?

Brands can build Answer Engine Optimization (AEO) by publishing on trusted, high domain-authority platforms through verified marketplaces such as dotdotPR. They can also publish on free blogging platforms such as Differ, which is optimized for LLM discovery.

Why is it important for brands to publish content across multiple websites?

Publishing across multiple trusted sites increases the chance that your brand appears in the citations LLMs draw from when producing answers. Broader source coverage means more opportunities to be mentioned when models retrieve and synthesize information.

Want this interpreted for your brand?

Explorer is the free public corpus. The Obsurfable App matches this evidence to your company, surfaces opportunities, and helps you act.