open-telemetry/opentelemetry-dotnet

[OTLP] Determine specific conditions to consider when retrying export without a response from server.

Open

#5,425 创建于 2024年3月7日

在 GitHub 查看
 (2 评论) (0 反应) (0 负责人)C# (889 fork)auto 404
enhancementhelp wantedkeep-openpkg:OpenTelemetry.Exporter.OpenTelemetryProtocol

仓库指标

Star
 (3,725 star)
PR 合并指标
 (PR 指标待抓取)

描述

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.

贡献者指南