Replies: 1 comment
-
|
Hi! We have built a new OTEL integration You can find the documentation here: https://the-guild.dev/graphql/hive/docs/gateway/monitoring-tracing#opentelemetry-traces This plugin is compatible with OpenTelemetry Context, which fixes your second issue. For resolvers tracing, this is not implemented yet on purpose. We strongly advise against tracing resolvers, because of the performance cost it introduces. We also think that resolver is not the right level for tracing. We strongly advise to instead trace your datasources, which will make more sense and be less verbose than resolvers (like on lists). That being said, we think about implementing resolver level tracing with some mechanism to select which resolver should be traced. But we want to gather more use cases and feedback before taking an actual decision about how the API would look like. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have been using the
'@opentelemetry/instrumentation-graphqlpackage for a bit but it does not create spans for resolvers withgraphql-yogaso I recently added the@envelop/opentelemetryplugin but it does not create active parent spans for each resolver so i am unable to see what other spans happened inside each resolver which IMO makes it mostly useless for tracing. Am I missing something or this there just not good tooling for tracing forgraphql-yogayet and it needs to be built?PS I did put up a PR for the plugin to fix the tracing but ran into issues so I might continue work on that if there is nothing else
Beta Was this translation helpful? Give feedback.
All reactions