We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31762bc commit 4e2773aCopy full SHA for 4e2773a
stackdriver/client.go
@@ -180,6 +180,16 @@ func (c *Client) Store(req *monitoring.CreateTimeSeriesRequest) error {
180
return
181
}
182
switch status.Code() {
183
+ // codes.DeadlineExceeded:
184
+ // It is safe to retry
185
+ // google.monitoring.v3.MetricService.CreateTimeSeries
186
+ // requests with backoff because QueueManager
187
+ // enforces in-order writes on a time series, which
188
+ // is a requirement for Stackdriver monitoring.
189
+ //
190
+ // codes.Unavailable:
191
+ // The condition is most likely transient. The request can
192
+ // be retried with backoff.
193
case codes.DeadlineExceeded, codes.Unavailable:
194
errors <- recoverableError{err}
195
default:
0 commit comments