Skip to content

Handle BatchWriteSpans retries when a retryable error occurs #523

@aabmass

Description

@aabmass

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:

  1. Add one-off code to do retries at the call site
  2. Generate a client library and migrate to use it
  3. Looks like @grpc/grpc-js actually supports retry config encoded in the grpc.service_config channel options. I have not tried this, some details here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions