opentelemetry-dotnet-instrumentation icon indicating copy to clipboard operation
opentelemetry-dotnet-instrumentation copied to clipboard

OpenTelemetry Protocol exporter - possibility to configure HTTP timeout

Open Kielek opened this issue 3 years ago • 1 comments
trafficstars

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

Kielek avatar Jun 01 '22 17:06 Kielek

The env vars should be named:

  • OTEL_EXPORTER_OTLP_TIMEOUT
  • OTEL_EXPORTER_OTLP_TRACES_TIMEOUT
  • OTEL_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?

pellared avatar Jun 08 '22 17:06 pellared