-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
include_messages does not cover GraphQL errors from the subgraph #3851
Comments
Suggest we defer this as we are touching much of this with the telemetry config work. |
To clarify on @Geal's note on Studio above- that was unrelated to the above filed issue as AS4 now defaults to masking errors. The |
Adding more color here. On the documentation site, it's listed that you can enable error messages via the Locally testing on v1.33.2, I can't seem to get this working. To Reproduce Given this configuration: telemetry:
apollo:
field_level_instrumentation_sampler: 0.3
errors:
subgraph:
all:
redact: false
send: true
metrics:
prometheus:
enabled: true
path: /metrics
listen: 0.0.0.0:9999
common:
attributes:
supergraph:
response:
body:
- path: .errors[0].message
name: error_message
context:
- named: has_errors
errors:
include_messages: true
subgraph:
all:
response:
body:
- path: .errors[0].message
name: error_message
errors:
include_messages: true
extensions:
- name: reason
path: .reason You will find that you do see an Subgraph:
Supergraph:
The subgraph is returning a valid GQL error with a message + extension that includes a |
Not sure if it still falls under #3226 anymore. |
When using metrics configuration like this:
The
include_messages
option is only used when the subgraph service returned an error (more specifically aFetchError
):router/apollo-router/src/plugins/telemetry/mod.rs
Lines 1232 to 1242 in f16523c
It should be able to report subgraph errors including the messages even if the subgraph returned a response with status 200
The text was updated successfully, but these errors were encountered: