opentelemetry-dotnet-instrumentation
opentelemetry-dotnet-instrumentation copied to clipboard
OpenTelemetry Protocol exporter - possibility to configure HTTP timeout
Feature Request
Based on #704
Add possibility to configure default timeout for http client for OTLP exporter, at least for protobuf over http.
It can be done by creating custom http client factory as described under https://github.com/open-telemetry/opentelemetry-dotnet/blob/main/src/OpenTelemetry.Exporter.OpenTelemetryProtocol/README.md?plain=1#L106-L112
Remember to document new environmental variable.
Consider separate settings for Metrics and Traces.
Similar issue for the Zipkin: #713
The env vars should be named:
OTEL_EXPORTER_OTLP_TIMEOUTOTEL_EXPORTER_OTLP_TRACES_TIMEOUTOTEL_EXPORTER_OTLP_METRICS_TIMEOUT
Reference: https://github.com/open-telemetry/opentelemetry-specification/blob/main/specification/protocol/exporter.md#configuration-options
Maybe this should be supported by the SDK?