aws-observability / aws-rum-web

Amazon CloudWatch RUM Web Client
Apache License 2.0
114 stars 65 forks source link

[Feature Request]: propagate backend generated trace id to frontend #420

Open maciekm opened 1 year ago

maciekm commented 1 year ago

propagate backend generated trace id to frontend

If the frontend is served by a backend server we cannot connect those traces. There should be a way to pass the trace id from the backend to the frontend.

example:

Because JavaScript code running in a browser cannot read the response headers of the current page, the trace data must be transmitted in the response itself, specifically in tags in the of the HTML sent from your backend.

https://docs.sentry.io/platforms/javascript/guides/react/performance/connect-services/#pageload