You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Im trying to link up all related downstream processes with a TraceId that is created in the frontend code and passed to all backend calls.
Is there a way to pass this traceId guid into the AWSXRay client capture methods ?
The text was updated successfully, but these errors were encountered:
shaundclements
changed the title
Is it possible to pass in a client side created traceId to the backend XRay capture so that is uses the supplied TraceId
Is it possible to pass in a client side created traceId to the backend XRay capture so that it uses the supplied TraceId
Aug 23, 2024
Hi @shaundclements, thanks for reaching out. Just trying to understand the situation and your question. As I understand it you have a front-end service and a backend service, both (?) are using the X-Ray Node SDK, and you want a consistent traceId to be used from fronted to backend. Can you clarify:
What framework are you using for the frontend and backend services?
Does the frontend directly call the backend with some client? If so, what client is used? If not, how is information transmitted to the backend?
Does the frontend only ever invoke the backend if a frontend API is invoked (e.g. the only path is FrontEnd API call -> Backend API call (or other transmission, see question 2).
It can be a mix of http requests to backend APIs and AWS services from a react client
I am specifically after client invoked/initiated tracing rather than tracing starting from separate backend APIs. A client might request more than one service in a workflow of actions. If I was to add an http client capture for each http request, what would tie the two together? Is there a way to pass the traceId into the second http client capture or would it generate a new traceId ?
Im trying to link up all related downstream processes with a TraceId that is created in the frontend code and passed to all backend calls.
Is there a way to pass this traceId guid into the AWSXRay client capture methods ?
The text was updated successfully, but these errors were encountered: