add ResponseErrors selector to router response#7882
add ResponseErrors selector to router response#7882Aguilarjaf wants to merge 11 commits intoapollographql:devfrom
Conversation
|
@Aguilarjaf: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Apollo Contributor License Agreement here: https://contribute.apollographql.com/ |
❌ Docs preview failedThe preview failed to build. Build ID: 91d0b0ccea4199e8407777d4 ErrorsGeneral: Failed to fetch GitHub source: OK |
apollo-router/src/plugins/telemetry/config_new/router/selectors.rs
Outdated
Show resolved
Hide resolved
…s.rs Co-authored-by: Zelda Hessler <zelda.hessler@pm.me>
|
Elsewhere we use JSON Path to select subsets of data from the I think it makes sense to have a feature like this in |
|
Hi @goto-bus-stop, thanks for the feedback! I have updated the PR to better align with the best practice of using JSON Path to select a subset of data from the router response. I have implemented an additional selector, |
|
@Mergifyio copy dev |
❌ No copy have been createdDetails
Git reported the following error: |
|
We'll close this in lieu of #8024, where you're welcome to help contribute to the conversation in getting it over the line but will no longer have branch push perms. Thanks much for getting this opened and started originally — you'll still get contribution credit via that other PR when it merges, but we'll be able to run this with the full CI from that PR via @Velfi's account. Thanks again to you both! |
|
This is shipping Router v2.7.0 — which has its release candidate up now as https://github.com/apollographql/router/releases/tag/v2.7.0-rc.0. It should be released officially in the next couple days. Thanks again for the original contribution! |
Introducing the
ResponseErrorsselector in telemetry configurations to capture router response errors, allowing users to capture and log errors encountered at the router service layer. This new selector enhances logging for the router service, as it allows users the option to only log router errors instead of the entire router response body to reduce noise.Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
A lot of (if not most) features benefit from built-in observability and
debug-level logs. Please read this guidance on metrics best-practices. ↩Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩