[OTLP] Determine specific conditions to consider when retrying export without a response from server.
#5425 aperta il 7 mar 2024
Metriche repository
- Star
- (3725 star)
- Metriche merge PR
- (Metriche PR in attesa)
Descrizione
Feature Request
In case when the response is not received from the server, HttpClient fails by throwing a HttpRequestException. In .NET 8.0, it is possible to further drill the error using HttpRequestError. Prior to this, such contract is not defined.
https://github.com/open-telemetry/opentelemetry-dotnet/pull/5394#discussion_r1508007233 brought up a point that we should probably not retry all exceptions which ends with no response. Opening this issue to further investigate and see if there is a better way to handle exceptions that ends with no response which can be use across all .NET versions.