Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

intercept xhr requests made at application startup #327

Open
tmc opened this issue Aug 10, 2020 · 1 comment
Open

intercept xhr requests made at application startup #327

tmc opened this issue Aug 10, 2020 · 1 comment

Comments

@tmc
Copy link

tmc commented Aug 10, 2020

Is there a good way to have requests that are made at startup get connected to the trace?

The last request here is made to the backend that served up the initial trace span but it is not being made with the traceparent header present.

Frame 1

Doing a little digging, it appears that XHR requests made at startup aren't connected to a server-provided trace because isTracingZone isn't true on the Zone, as far as I can tell.

@draffensperger
Copy link
Contributor

Thanks for reaching out about this. I have been meaning to put a disclaimer on the repo, but this specific repo is not being actively maintained at this point, but instead work has focused on OpenTelemetry JS, which has similar functionality, see https://github.com/open-telemetry/opentelemetry-js and https://github.com/open-telemetry/opentelemetry-js-contrib/tree/master/plugins/web.

I would recommend giving those a try and if the problem is with them as well, then file an issue with that repo - the maintainers are more active and the community is stronger there.

See https://opensource.googleblog.com/2019/05/opentelemetry-merger-of-opencensus-and.html for more about the broader merge of OpenCensus into OpenTelemetry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants