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
質問済み 1年前304ビュー
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

回答済み 1年前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ