Skip to content

Tutorial

OpenTelemetry Collector Not Sending Data? A Step-by-Step Checklist

How to use the debug exporter and the collector's internal metrics to find where your data stops, plus what the common export errors mean.

Jason Agee
Jason Agee
November 21, 2026 · 9 min read

Your app says it's sending data and the collector is running, but nothing shows up in the backend, and often the collector's log shows no error. When we've helped other teams debug this, the same problems kept coming up. The output below is from collector v0.165.0. Older versions word some of it differently.

The short version

  1. Check that the collector started. Its log should say Everything is ready. Begin running and processing data.
  2. Send it one span with curl. If curl can't connect, the receiver isn't reachable at that address.
  3. Add the debug exporter to your pipeline. Anything it prints made it through the receivers and processors.
  4. Search the log for Exporting failed. Retries are logged at info level, so an errors-only filter hides them. The error field says what went wrong.
  5. Check the collector's internal metrics on port 8888 to see which component the data stops at.

1. Did the collector start?

A clean start logs this line.

info	[email protected]/service.go:256	Everything is ready. Begin running and processing data.

The line is logged at info, so it won't show if service.telemetry.logs.level is warn or error. Neither will the debug exporter's output in step 3, so keep the default info while debugging.

If the level is info and the line is missing, the collector exited on an error, and the last few lines it printed say why. A typo in a component name looks like this.

'exporters' unknown type: "otlphtp" for id: "otlphtp" (valid values: [...])

If the name is spelled right, that component isn't in your build. The core otel/opentelemetry-collector image leaves most components out, so use otel/opentelemetry-collector-contrib.

Configs copied from older tutorials also break on things that have since been removed.

  • The jaeger exporter gives unknown type: "jaeger". Jaeger accepts OTLP, so point an otlp_grpc exporter (otlp before v0.144.0) at Jaeger's port 4317 instead.
  • The memory_ballast extension gives unknown type: "memory_ballast". Delete it.
  • The logging exporter fails with the logging exporter has been deprecated, use the debug exporter instead. Rename it to debug and change loglevel: debug to verbosity: detailed.
  • service.telemetry.metrics.address now fails with has invalid keys: address. The readers block in step 5 replaces it.

If a pipeline lists an exporter that isn't defined under exporters:, the collector fails like this.

Error: invalid configuration: service::pipelines::traces: references exporter "otlp_http" which is not configured

Run validate to check a config without starting the collector.

otelcol-contrib validate --config=config.yaml

If a load balancer or a Kubernetes probe needs something to poll, turn on the health check extension.

extensions:
  health_check:
    endpoint: 0.0.0.0:13133

service:
  extensions: [health_check]
curl localhost:13133
{"status":"Server available","upSince":"2026-11-21T12:26:52.576332-05:00","uptime":"1.805171375s"}

That only tells you the collector is running.

The official contrib image is built FROM scratch with no shell, curl or wget, so a Docker Compose healthcheck that runs curl inside the collector's container always fails. Run the check from the host or from another container.

2. Send it one span by hand

This tests the collector without your app. Save a span stamped with the current time as span.json.

cat > span.json <<EOF
{
  "resourceSpans": [{
    "resource": {
      "attributes": [{ "key": "service.name", "value": { "stringValue": "checkout" } }]
    },
    "scopeSpans": [{
      "scope": { "name": "manual-test" },
      "spans": [{
        "traceId": "5b8efff798038103d269b633813fc60c",
        "spanId": "eee19b7ec3c1b174",
        "name": "test-span",
        "kind": 2,
        "startTimeUnixNano": "$(date +%s)000000000",
        "endTimeUnixNano": "$(date +%s)500000000"
      }]
    }]
  }]
}
EOF

Then post it to the OTLP/HTTP port.

curl -i http://localhost:4318/v1/traces \
  -H 'Content-Type: application/json' \
  -d @span.json

HTTP/1.1 200 OK with {"partialSuccess":{}} means the receiver took the span. The collector sends the same reply even when the export to your backend fails later.

If curl can't connect, or your app's SDK logs connection refused, check where the receiver is listening. Since v0.104.0, an OTLP receiver with no endpoint set only listens on localhost, and the startup log shows it.

info	[email protected]/otlp.go:142	Starting GRPC server	{..., "endpoint": "127.0.0.1:4317"}

That's fine on a laptop. In Docker or Kubernetes, nothing outside the collector's container or pod can reach it. Older configs often leave the endpoint out because that used to work. Set the endpoints yourself.

receivers:
  otlp:
    protocols:
      grpc:
        endpoint: 0.0.0.0:4317
      http:
        endpoint: 0.0.0.0:4318

0.0.0.0 listens on every network interface, so keep those ports off the public internet.

If the debug exporter in step 3 shows curl's span but nothing from your app, the problem is between the app and the collector.

  • Inside a container, localhost is that container. Point the SDK at the collector's service or container name.
  • 4317 is gRPC and 4318 is HTTP. An SDK sending http/protobuf to 4317, or gRPC to 4318, won't get through. Change the port to match, or set OTEL_EXPORTER_OTLP_PROTOCOL if your SDK reads it.
  • OTEL_EXPORTER_OTLP_ENDPOINT takes the base URL, like http://collector:4318, and HTTP exporters add /v1/traces to it. OTEL_EXPORTER_OTLP_TRACES_ENDPOINT is used exactly as written, so that one needs the full path.
  • A web page that posts to the collector needs its origin allowed on the HTTP receiver, under cors.allowed_origins.
  • If the SDK gets a 503 with data refused due to high memory usage, the memory_limiter processor is over its limit.
  • Traces, metrics and logs each need a pipeline with the otlp receiver in it. Without a logs pipeline, an SDK sending logs gets 404 page not found over HTTP or unknown service opentelemetry.proto.collector.logs.v1.LogsService over gRPC, and the collector logs nothing.

3. Add the debug exporter

The debug exporter prints whatever reaches it to the collector's log. Put it next to your real exporter to see whether data gets to the end of the pipeline.

exporters:
  debug:
    verbosity: detailed
  otlp_http:
    endpoint: https://otlp.example.com

service:
  pipelines:
    traces:
      receivers: [otlp]
      processors: [batch]
      exporters: [debug, otlp_http]

Collectors older than v0.144.0 call the OTLP exporters otlp and otlphttp. Newer ones still accept those names and log a deprecation warning.

At the default verbosity: basic, the debug exporter logs one line per batch. Under steady traffic, the collector's log sampling skips most of these lines.

info	Traces	{..., "otelcol.component.id": "debug", "otelcol.component.kind": "exporter", "otelcol.signal": "traces", "resource spans": 1, "spans": 1}

With detailed, as in the config above, it prints every span in full.

ResourceSpans #0
Resource SchemaURL:
Resource attributes:
     -> service.name: Str(checkout)
ScopeSpans #0
ScopeSpans SchemaURL:
InstrumentationScope manual-test
Span #0
    Trace ID       : 5b8efff798038103d269b633813fc60c
    Parent ID      :
    ID             : eee19b7ec3c1b174
    Name           : test-span
    Kind           : Server
    Start time     : 2026-11-21 18:07:04 +0000 UTC
    End time       : 2026-11-21 18:07:04.5 +0000 UTC
    Status code    : Unset
    Status message :
    DroppedAttributesCount: 0
    DroppedEventsCount: 0
    DroppedLinksCount: 0

If your spans print here but never show up in the backend, first make sure your real exporter is listed in the same pipeline. The collector won't warn you if it's missing. If it's there, look for export errors in step 4. If there aren't any, the backend accepted the data, so check the project, dataset and time range you're viewing.

If nothing prints at all (and the log level is info), the data stopped earlier in the pipeline.

  • The debug exporter isn't in the pipeline. Anything under exporters: or processors: only runs if it's also listed under service.pipelines. If it isn't, the collector starts without a warning and validate still passes.
  • A processor is dropping the data. A filter condition that's too broad drops data without logging anything at the default log level. Step 5 shows how to spot it.

Take the debug exporter back out when you're done. At detailed it writes every single span to the log.

4. Read the export errors

When an export fails and will be retried, the collector logs Exporting failed. Will retry the request after interval. with the reason in the error field. That line is logged at info level, so an errors-only filter hides it. By default the collector retries for up to five minutes (retry_on_failure.max_elapsed_time), then drops the data and logs an error.

error	internal/queue_sender.go:57	Exporting failed. Dropping data.	{..., "error": "no more retries left: rpc error: code = Unavailable desc = connection error: desc = \"transport: Error while dialing: dial tcp 127.0.0.1:4999: connect: connection refused\"", "dropped_items": 1}

The error field usually has one of these in it.

The error field containsWhat's wrongFix
connect: connection refusedNothing is listening at the exporter's endpointCheck the host, the port and that the backend is up. In a container, localhost is the collector itself
tls: first record does not look like a TLS handshakeThe exporter uses TLS and the endpoint doesn'tFor a plaintext endpoint, set tls.insecure: true on otlp_grpc, or use http:// on otlp_http
malformed HTTP responseAn otlp_http exporter is pointed at a gRPC port, usually 4317Use port 4318, or switch to otlp_grpc
http2: frame too large, note that the frame header looked like an HTTP/1.1 headerAn otlp_grpc exporter is pointed at an HTTP port, usually 4318Use port 4317, or switch to otlp_http
HTTP Status Code 404 and a URL ending in /v1/traces/v1/tracesThe endpoint already has the signal path, and the exporter adds it againGive endpoint the base URL only, or put the full URL in traces_endpoint
unknown service, or HTTP Status Code 404 for one signal while the others go throughThe collector or backend on the other end doesn't take that signalAdd a pipeline for that signal on the receiving collector, or send that signal to a backend that takes it
code = Unauthenticated or HTTP Status Code 401Missing or wrong credentialsSend the header your backend expects (below)
sending queue is fullThe exporter can't keep up, or the backend has been down a whileFix the backend first. Raise sending_queue.queue_size if bursts are normal for you

A 401 or a 404 is a permanent error, so the collector drops the data on the first try instead of retrying.

Credentials go under headers.

exporters:
  otlp_http:
    endpoint: https://otlp.example.com
    headers:
      Authorization: "Bearer ${env:BACKEND_API_KEY}"

And a plaintext gRPC endpoint, like another collector, needs TLS turned off.

exporters:
  otlp_grpc:
    endpoint: other-collector:4317
    tls:
      insecure: true

Turn on debug logs

For more detail from the collector, raise its log level.

service:
  telemetry:
    logs:
      level: debug

At debug, the filter processor logs each condition it checks and whether it matched, which helps when a filter is dropping more than it should.

5. Check the collector's internal metrics

The collector counts what its receivers, exporters and most processors handle and serves the counts at http://localhost:8888/metrics. The internal telemetry docs list the main ones.

Since v0.111.0, port 8888 listens on localhost by default, like the receiver in step 2. If the collector runs in a container, or Prometheus scrapes it from outside the pod, set the host (and in Docker, publish port 8888).

service:
  telemetry:
    metrics:
      readers:
        - pull:
            exporter:
              prometheus:
                host: 0.0.0.0
                port: 8888

This grep pulls out the metrics that help here.

curl -s localhost:8888/metrics | grep -E "accepted|refused|sent|failed|incoming|outgoing|queue"

Start with the receiver counters and work toward the exporter. Here's a collector whose backend is rejecting its API key.

otelcol_receiver_accepted_spans{receiver="otlp",transport="http"} 1
otelcol_exporter_sent_spans{exporter="otlp_http",...} 0
otelcol_exporter_send_failed_spans{exporter="otlp_http",...} 1

The receiver took the span and the exporter couldn't send it. And here's a filter processor dropping everything.

otelcol_receiver_accepted_spans{receiver="otlp",transport="http"} 1
otelcol_processor_incoming_items{otel_signal="traces",processor="filter"} 1
otelcol_processor_outgoing_items{otel_signal="traces",processor="filter"} 0

Also check the refused and queue metrics.

  • If otelcol_receiver_refused_spans is going up, the collector is turning data away. In our tests that was either the memory_limiter processor (the log said Memory usage is above soft limit. Refusing data.) or a full send queue.
  • If otelcol_exporter_queue_size is sitting at otelcol_exporter_queue_capacity, the send queue is full. otelcol_exporter_enqueue_failed_spans counts the spans that didn't fit.

Logs and metrics have the same counters, ending in _log_records and _metric_points instead of _spans. The names change a little between versions and setups (some add a _total suffix), which is why the grep only matches part of each name.

We have config templates for common backends in Flows.

Share this post

Manage your OpenTelemetry collectors with Telflo today.

Design, test, and deploy OpenTelemetry Collectors in one platform.

Sign up now
In this post