<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.19.1" />

OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.ExportClient.OtlpExportClient

abstract class OtlpExportClient : IExportClient
protected OtlpExportClient(OtlpExporterOptions options, HttpClient httpClient, string signalPath)

protected virtual HttpContent CreateHttpContent(byte[] buffer, int contentLength)

Creates the HttpContent for a request. Override in subclasses to customise content creation (e.g. to apply compression).

protected HttpRequestMessage CreateHttpRequest(byte[] buffer, int contentLength)

Determines whether a response declares more content than MaxResponseSizeBytes (plus any HeaderBytesSize) allows, recording that it is being discarded.

public abstract ExportClientResponse SendExportRequest(byte[] buffer, int contentLength, DateTime deadlineUtc, CancellationToken cancellationToken = default)

public bool Shutdown(int timeoutMilliseconds)