Stabilize client-side OTEL export #312
Labels
📦 Lexbox
issues related to any server side code, fw-headless included
OpenTelemetry
owner: Tim, Kevin
Milestone
Client-side OTEL uses the Beacon API for exporting traces. That's pretty much what the beacon API is for:
but it has limitations that make trace collection flaky (#307, open-telemetry/opentelemetry-js#3489).
Using the fetch API with the
keepalive
parameter would be more reliable (although it's not implemented yet in FireFox).Despite the lack of support in FF it still might be worth changing to the fetch API, but the last time this was discussed in OTEL it didn't lead anywhere. There doesn't seem to be an easy way to do it currently. There is a way to use
XMLHttpRequest
, but that wouldn't be as big of a win.I was directed to what looks like the most active relevant OTEL issue:
There is some other relevant work, but most of it is somewhat stale:
The text was updated successfully, but these errors were encountered: