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

OpenTelemetry.Exporter.OpenTelemetryProtocol.Implementation.Transmission.OtlpExporterTransmissionHandler

public OtlpExporterTransmissionHandler(IExportClient exportClient, double timeoutMilliseconds)

public void Dispose()

protected virtual void Dispose(bool disposing)

Releases the unmanaged resources used by this class and optionally releases the managed resources.

protected virtual void OnShutdown(int timeoutMilliseconds)

Fired when the transmission handler is shutdown.

protected virtual bool OnSubmitRequestFailure(byte[] request, int contentLength, ExportClientResponse response)

Fired when a request could not be submitted.

public bool Shutdown(int timeoutMilliseconds)

Attempts to shutdown the transmission handler, blocks the current thread until shutdown completed or timed out.

protected bool TryRetryRequest(byte[] request, int contentLength, DateTime deadlineUtc, out ExportClientResponse response)

Fired when resending a request to the server.

public bool TrySubmitRequest(byte[] request, int contentLength)

Attempts to send an export request to the server.