cosmo icon indicating copy to clipboard operation
cosmo copied to clipboard

Add flag or field to identify error sources

Open biubiubiuboomboomboom opened this issue 5 months ago • 4 comments

Component(s)

router

Is your feature request related to a problem? Please describe.

hello, everyone. currently , there is no specific flag or field in cosmo router to identify error sources. therefore, whenever an error occurs , we need to spend time confirming whether the error originates from cosmo or the subgraph.

subgraph error propagation is good feature that can help us propagate subgraph errors ,but it can't help us identify error sources .

Describe the solution you'd like

add a specific flag or custom field on the error body of cosmo router which can help us identify which errors originate from cosmo .

Describe alternatives you've considered

No response

Additional context

No response

biubiubiuboomboomboom avatar Jun 17 '25 07:06 biubiubiuboomboomboom

WunderGraph commits fully to Open Source and we want to make sure that we can help you as fast as possible. The roadmap is driven by our customers and we have to prioritize issues that are important to them. You can influence the priority by becoming a customer. Please contact us here.

github-actions[bot] avatar Jun 17 '25 07:06 github-actions[bot]

Hi There,

Have you tried using OTEL spans, for example with jaeger, newrelic, datadog, etc, to observe where the errors are originating from?

Docs: https://cosmo-docs.wundergraph.com/router/open-telemetry#tracing

Regards, Wundergraph Team

SkArchon avatar Jun 17 '25 09:06 SkArchon

yes , we are currently using it this way . but traces and logs are backend-only , meaning clients cannot directly access such information.

biubiubiuboomboomboom avatar Jun 17 '25 09:06 biubiubiuboomboomboom

Hi There,

Have you tried using OTEL spans, for example with jaeger, newrelic, datadog, etc, to observe where the errors are originating from?

Docs: https://cosmo-docs.wundergraph.com/router/open-telemetry#tracing

Regards, Wundergraph Team

No, the tracing is sampled, when the error happens, The client needs more information to judge which component error

chensunny avatar Jun 23 '25 02:06 chensunny