Skip to content

Conversation

@bshaffer
Copy link
Contributor

@bshaffer bshaffer commented Jan 2, 2019

  • Removes a bunch of samples and simplifies them
  • Fixes tests

@bshaffer bshaffer requested review from a team and grayside January 2, 2019 20:00
Copy link
Contributor

@grayside grayside left a 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
Copy link
Contributor

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"
Copy link
Contributor

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;
Copy link
Contributor

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.

Copy link
Contributor Author

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.

@bshaffer bshaffer merged commit 12ea819 into master Jan 4, 2019
@bshaffer bshaffer deleted the fix-error-reporting-tests branch January 4, 2019 06:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants