Custom Xray Trace for Graphql Mutation

1

Hi there, I have Xray enabled in my NodeJs Express App with Graphql. I can see segments for other rest endpoints but the other query and mutation that goes through Graphql only /graphql as the path with makes it hard if i need to troubleshoot. Is there a way i can trace GraphQL mutation with AWS xray?

profile picture
asked a year ago271 views
1 Answer
0

You probably are looking for subsegments. So you would create a subsegment with a namespace of "remote" and add the mutation data in metadata. This way you can filter the traces based on the mutation performed.

https://docs.aws.amazon.com/xray/latest/devguide/xray-sdk-nodejs-subsegments.html

answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions