Skip to content

Commit

Permalink
add comment follow up
Browse files Browse the repository at this point in the history
  • Loading branch information
vishweshbankwar committed Feb 21, 2024
1 parent ee84877 commit 0d08c78
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ protected BaseOtlpHttpExportClient(OtlpExporterOptions options, HttpClient httpC
/// <inheritdoc/>
public ExportClientResponse SendExportRequest(TRequest request, CancellationToken cancellationToken = default)
{
// Using this.HttpClient.Timeout.TotalMilliseconds here as the client can be configured by the user
// in this case the timeout set within the client will take precedence over timeout set via otlpexporter options
// the value will also match the timeout set via options when the client is NOT provided by the user.
DateTime deadline = DateTime.UtcNow.AddMilliseconds(this.HttpClient.Timeout.TotalMilliseconds);
try
{
Expand Down

0 comments on commit 0d08c78

Please sign in to comment.