-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
enhancementNew feature or requestNew feature or requestenhancement acceptedAn actionable enhancement for which PRs will be acceptedAn actionable enhancement for which PRs will be acceptedpriority: p2trace
Description
Follow up to #181
Trace
Since we are using gRPC, I believe we will get automatic retries for well known retry-able statuses. However, the trace exporter still needs to handle retries for idempotent BatchWriteSpans() calls. Unfortunately, we are not generating a client library into the googleapis/google-cloud-node repo that we can use instead of raw gRPC. I think this is because we have a "handwritten" client lib which is actually the Cloud Trace agent (https://github.com/googleapis/cloud-trace-nodejs). If we had a client library, we would get automatic retries pulled from the service config.
Possible fixes:
- Add one-off code to do retries at the call site
- Generate a client library and migrate to use it
- Looks like
@grpc/grpc-jsactually supports retry config encoded in thegrpc.service_configchannel options. I have not tried this, some details here.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestenhancement acceptedAn actionable enhancement for which PRs will be acceptedAn actionable enhancement for which PRs will be acceptedpriority: p2trace