-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Fix error reporting when trace data is not included #7136
Merged
Merged
Changes from all commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
4bee898
write test demonstrating current behavior
trevor-scheer 9509307
update metrics interface
trevor-scheer 760c56a
use updated gateway build, implement fix and update tests
trevor-scheer 9efb148
Correctly count metrics w.r.t non-ftv1 errors
trevor-scheer 6adca8b
package-lock update
trevor-scheer 0621c25
polish
trevor-scheer 674b565
Merge branch 'main' into trevor/usage-reporting-errors
trevor-scheer 7d4804b
Update nonFtv1Errors -> nonFtv1ErrorPaths
trevor-scheer 82afd7c
prettier
trevor-scheer 4a6f39e
Incorporate subgraph name into root key
trevor-scheer 0367f6a
snapshot updates
trevor-scheer 52f8b64
extract and export NonFtv1ErrorPath interface
trevor-scheer 12355d9
remove outdated comment
trevor-scheer 5c19b5a
add comments
trevor-scheer 57dd284
remove unused import
trevor-scheer c3ba88e
Complicate test cases for deeper errors including _entities
trevor-scheer b2b98f6
Merge branch 'main' into trevor/usage-reporting-errors
trevor-scheer e167da0
changeset
trevor-scheer e1b8122
add note about updating gateway
trevor-scheer d6c5293
Update to latest gateway version with necessary patch release
trevor-scheer 5548ec0
Merge branch 'main' into trevor/usage-reporting-errors
trevor-scheer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
'@apollo/server': patch | ||
--- | ||
|
||
Errors reported by subgraphs (with no trace data in the response) are now accurately reflected in the numeric error stats. | ||
|
||
Operations that receive errors from subgraphs (with no trace data in the response) are no longer sent as incomplete, error-less traces. | ||
|
||
Note: in order for this fix to take effect, your `@apollo/gateway` version must be updated to v2.3.1 or later. |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this changeset (and PR description) need to note that a particular version of Gateway is also needed to have the issue be actually fixed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added in e1b8122 (with a FIXME to plug in final gateway version)