-
Notifications
You must be signed in to change notification settings - Fork 1k
Updates error reporting samples and fixes tests #802
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
Conversation
bshaffer
commented
Jan 2, 2019
- Removes a bunch of samples and simplifies them
- Fixes tests
grayside
left a comment
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.
Cannot approve, there is a single missing whitespace. Good stuff.
Why is there a logger mechanism, a gRPC mechanism, but no REST client sample? Is that not an option?
| [0]: https://console.cloud.google.com/flows/enableapi?apiid=clouderrorreporting.googleapis.com | ||
| [1]: https://console.cloud.google.com/errors | ||
| [2]: https://console.cloud.google.com/iam-admin/serviceaccounts/ | ||
| [3]: http://php.net/manual/en/function.set-exception-handler.php |
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.
Yay reference link!
| "google/cloud-error-reporting": "^0.8", | ||
| "symfony/console": " ^3.3", | ||
| "symfony/event-dispatcher": "^3.3" | ||
| "google/cloud-error-reporting": "^0.12.3" |
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.
👍
| private function verifyReportedError($projectId, $message, $retryCount = 6) | ||
| private function verifyReportedError($projectId, $message) | ||
| { | ||
| $retryCount = 7; |
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.
Why bump to 7? Retry count seems arbitrary.
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.
It was failing occasionally when retryCount was 6. I guess the eventual consistency was around there. Would maybe be "better" to override the exponential backoff function, but given the context this is fine.