Skip to content

Allow customization of retry error codes in OTLP grpc exporter #4904

@kasium

Description

@kasium

Is your feature request related to a problem?

We use a backend for the OTLP grpc exporter which tends to sends a 500 response if its overloaded. While this does not follow the best practice, we would like to retry 500 error codes.

Describe the solution you'd like

Allow customization of the _RETRYABLE_ERROR_CODES

_RETRYABLE_ERROR_CODES = frozenset(
[
StatusCode.CANCELLED,
StatusCode.DEADLINE_EXCEEDED,
StatusCode.RESOURCE_EXHAUSTED,
StatusCode.ABORTED,
StatusCode.OUT_OF_RANGE,
StatusCode.UNAVAILABLE,
StatusCode.DATA_LOSS,
]
)

Describe alternatives you've considered

Improve the exporter

Additional Context

No response

Would you like to implement a fix?

Yes

Tip

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it. Learn more here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions