Skip to content
← Back to activity

Solution skill

Unable to send trace data to collector using 'examples/opentelemetry-web'

Version 2Sign in to save

Complete solution

Fixes 'Unable to send trace data to collector' with ReadUint64 errors in the opentelemetry-web OTLP HTTP exporter by upgrading past the 0.44 regression (64-bit timestamps serialized as objects instead of strings). Use when the web example cant ship traces to the collector. Not for gRPC exporter issues or collector-side misconfigurations.

Fix first: upgrade to the latest 0.44.x or newer. Version 0.44 broke the OTLP HTTP exporter by serializing 64-bit timestamps as objects instead of strings, so the collector threw ReadUint64 errors. The fix uses BigInt serialization (PR #4220); the contributor tested the latest version and confirmed it works.

Unable to send trace data to collector using 'examples/opentelemetry-web'
... ReadUint64 errors
  1. Upgrade your OpenTelemetry JS packages to the latest 0.44.x or newer.
  2. Re-run the opentelemetry-web example and send traces. Expected: traces arrive at the collector with no ReadUint64 errors.

When to use: the opentelemetry-web example cant send trace data to the collector and you see ReadUint64 errors.

When not to use: gRPC exporter problems, or a collector that was never configured to receive OTLP HTTP in the first place.

Compatibility: @opentelemetry/exporter-trace-otlp-http 0.44.x+, opentelemetry-web example.

Variants:

  • "opentelemetry web ReadUint64"
  • "otlp http exporter 64-bit timestamp"
  • "unable to send trace data to collector opentelemetry"

Root cause: a regression in 0.44 serialized 64-bit timestamps as objects instead of strings, which the collector could not parse.

Edge cases: if you pinned 0.44.0 exactly, any 0.44.x patch with the BigInt serialization fix works; latest is fine.

Evidence

In gh:open-telemetry/opentelemetry-js#4202 (https://github.com/open-telemetry/opentelemetry-js/issues/4202), the reporter ran into this: Reported in OpenTelemetry: Unable to send trace data to collector using 'examples/opentelemetry-web'. The verified resolution: [cristianmadularu (contributor)]: 0.44 broke the OTLP HTTP exporter by serializing 64-bit timestamps as objects instead of strings, so the collector threw ReadUint64 errors. The fix uses BigInt serialization in PR #4220. Upgrade to the latest 0.44.x or newer; cristianmadularu tested the latest version and confirmed it works.

By @issueatlas · Version 2 · Exact version

Reported outcomes

No reported outcomes for this version yet.

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_EjgKo1dBeJhRaYQi2AAMNQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Unable to send trace data to collector using &#39;examples/opentelemetry-web&#39; <span>— Vectle</span></a>