OpenTelemetry
Troubleshooting

Troubleshooting

Traceway accepts telemetry it cannot use rather than rejecting the whole batch, so a misconfiguration usually looks like silence rather than an error. Work down this list.

Check the wire first

Post an empty span batch and watch the status code:

curl -i -X POST https://cloud.tracewayapp.com/api/otel/v1/traces \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer <project_token>' \
  -d '{"resourceSpans":[]}'
  • 200 with the body {} means the endpoint and token are good. The problem is in your SDK, or in how your spans are shaped.
  • 401 with an empty body means a bad token, or a header that does not start with Bearer .
  • 503 with Retry-After means ingest is saturated. Exporters retry this automatically.
  • 413 means the batch exceeded 10 MB after decompression. Nothing was ingested. Lower the exporter's batch size.
  • 404 means the path under /api is wrong, for example /api/v1/traces instead of /api/otel/v1/traces.
  • 200 with an HTML body means the /api prefix is missing. The dashboard is served from the same origin, so its single-page fallback answers /otel/v1/traces with the dashboard itself and it looks like a success. Check that the response Content-Type is application/json, not text/html. The base is /api/otel, not /otel.

Then check the shape

SymptomCauseFix
Background job or cron is visible in Spans but missing from TasksIts span uses the default INTERNAL kindSet kind: SpanKind.CONSUMER, or add console.command to a root INTERNAL span
Endpoint is named after the span, not the routeNo http.request.method or http.method on the span. Without a method the route is ignored entirelySet the method attribute alongside http.route
One endpoint row per URL, thousands of themOnly url.path is set, so the concrete URL becomes the nameSet http.route to the low-cardinality template, /users/:id
Requests appear as UNMATCHEDThey are 404s with no matched route, collapsed on purposeExpected. A matched route returning 404 keeps its name
The same route is listed twice with a Mixed chipA batch processor split the parent and child spans across two exports, so the child was promoted to its own endpointRaise maxExportBatchSize / scheduledDelayMillis, or stop emitting the redundant sub-handler span
Nothing at all from an ESM Node appThe @opentelemetry/instrumentation/hook.mjs loader hook is missing, so nothing was patchedRegister the loader hook. See Node.js
Logs page is emptyNo log exporter is wired (a trace exporter does not send logs), or there is no bridge from your logging library into the OTel logs APISee Logs
Logs exist but the trace’s Logs panel is emptyThe records may lack the active trace contextCompare the log’s trace ID with the request’s trace ID and check that logging runs inside the active span
A Summary metric is missingTraceway skips OTLP Summary pointsExport a histogram
Metrics arrive but every series looks identicalThe distinguishing attribute is on the Resource and is not in the allowlistEmit it as a data-point attribute instead. See Metrics
Large exports vanish and the exporter logs a 413The batch exceeded 10 MB after decompression and was rejected outrightLower the exporter's batch size

Rejected and retried batches

An export larger than 10 MB after decompression is rejected outright with 413 Request Entity Too Large and {"error":"request body exceeds the size limit"}. Nothing is truncated and nothing is partially ingested. OTLP exporters treat 4xx as permanent and drop the batch instead of retrying, so that data is lost. Keep batches comfortably under the limit by capping the exporter's batch size: maxExportBatchSize in the JS SDK, max_export_batch_size in Python, send_batch_max_size on the Collector's batch processor. The SDK default of 512 spans per export is far below the limit.

If ingest is saturated, Traceway answers 503 with a Retry-After header instead. That one is retryable, and every OTLP exporter and the Collector will back off and resend.

Turn on the SDK's own diagnostics

Most silent client-side failures, including a mis-constructed exporter or processor, only surface here:

import { diag, DiagConsoleLogger, DiagLogLevel } from "@opentelemetry/api";
diag.setLogger(new DiagConsoleLogger(), DiagLogLevel.DEBUG);

The equivalents are OTEL_LOG_LEVEL=debug for Python and the Java agent, and otel.SetErrorHandler for Go.