Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add table for OTLP/HTTP response code and client retry recommendation #3028

Merged
merged 9 commits into from
Dec 20, 2022
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -631,6 +631,7 @@ release.
([#2235](https:/open-telemetry/opentelemetry-specification/pull/2235))
- Parameters for private key and its chain added
([#2370](https:/open-telemetry/opentelemetry-specification/pull/2370))
- Add table for OTLP/HTTP response code and client retry recommendation([#3028](https:/open-telemetry/opentelemetry-specification/pull/3028))

### SDK Configuration

Expand Down
13 changes: 13 additions & 0 deletions specification/protocol/otlp.md
Original file line number Diff line number Diff line change
Expand Up @@ -547,6 +547,19 @@ defined in `Status` message schema.
The server MAY include `Status.details` field with additional details. Read
below about what this field can contain in each specific failure case.

The server SHOULD use HTTP response status codes to indicate
retryable and not-retryable errors for a particular erroneous situation. The
client SHOULD honour HTTP response status codes as retryable or not-retryable,
status codes listed in following table are retryable and the other `4xx` or
`5xx` status codes are not retryable.
newly12 marked this conversation as resolved.
Show resolved Hide resolved

|HTTP response status code|Retryable?|
MrAlias marked this conversation as resolved.
Show resolved Hide resolved
|---------|----------|
|429 Too Many Requests|Yes|
|502 Bad Gateway|Yes|
|503 Service Unavailable|Yes|
|504 Gateway Timeout|Yes|

##### Bad Data

If the processing of the request fails because the request contains data that
Expand Down