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
질문됨 일 년 전302회 조회
1개 답변
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

답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠