router
router copied to clipboard
Option to send error details to Studio in usage reporting (bonus: with option to redact message parts)
Is your feature request related to a problem? Please describe.
It would be useful to see error messages in Studio. Right now, all we get is the path to the error and <masked>.

Describe the solution you'd like This behavior should be off by default, and users could enable it for routers running in development environments.
Ideally, they can also provide transforms for omitting errors from reporting entirely, or redacting error parts. A simple version in YAML that omits or redacts based on a regular expression would probably cover 80%, and a rhai hook would cover the last 20%.
Additional context Apollo Server has extensive functionality for enabling and customizing error reporting to Studio: https://www.apollographql.com/docs/apollo-server/data/errors/#for-apollo-studio-reporting
A customer just pointed out that errors in traces are always included if the subgraph provides them in the inline-trace plugin. (And the AS3 default behavior was to include errors in traces). So we also want a way to toggle that behavior (and it should probably be <masked> by default?)
A customer just pointed out that errors in traces are always included if the subgraph provides them in the inline-trace plugin. (And the AS3 default behavior was to include errors in traces). So we also want a way to toggle that behavior (and it should probably be
<masked>by default?)
Note that this aspect of this larger umbrella issue is no longer true and we redact subgraph errors which are included in the inline-trace plugin unless redact: false is set.
This has been coming up multiple customers. GraphOS should be able to track detailed subgraph error messages, stack traces, and extensions from subgraphs without sending those to users, and we can not get that working. Even without support of FTV1 tracing we should be able to send info to GraphOS