You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/OpenTelemetry.Exporter.OpenTelemetryProtocol/Implementation/ExportClient/ProtobufOtlpHttpExportClient.cs
// `HttpClient.Timeout.TotalMilliseconds` would be populated with the correct timeout value for both the exporter configuration cases:
107
-
// 1. User provides their own HttpClient. This case is straightforward as the user wants to use their `HttpClient` and thereby the same client's timeout value.
108
-
// 2. If the user configures timeout via the exporter options, then the timeout set for the `HttpClient` initialized by the exporter will be set to user provided value.
Debug.Assert(!string.IsNullOrEmpty(experimentalOptions.DiskRetryDirectoryPath),$"{nameof(experimentalOptions.DiskRetryDirectoryPath)} is null or empty");
@@ -169,6 +132,11 @@ public static IProtobufExportClient GetProtobufExportClient(this OtlpExporterOpt
169
132
{
170
133
varhttpClient=options.HttpClientFactory?.Invoke()??thrownewInvalidOperationException("OtlpExporterOptions was missing HttpClientFactory or it returned null.");
0 commit comments