-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
apollo-engine-reporting: fix maxAttempts parameter, log 5xx body (#3218)
- The behavior of maxAttempts previously failed to match its documentation or the literal reading of its name. Previously, setting maxAttempts=1 would actually result in one retry after the initial attempt. This change fixes the behavior to match the docs and the name. - We intend the bodies of Engine report endpoint errors to be useful in error logs, even 5xx errors. This change returns to including them in the reported error. PR #1274 (merged before the initial release of apollo-engine-reporting) regressed both of these issues.
- Loading branch information
1 parent
c798068
commit 4675c67
Showing
3 changed files
with
118 additions
and
60 deletions.
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
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
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