<PackageReference Include="OpenTelemetry" Version="1.15.2" />

OpenTelemetry.BaseExporter<T>

public abstract class BaseExporter<T> : IDisposable
Exporter base class.
public BaseProvider ParentProvider { get; }

Gets the parent BaseProvider.

protected BaseExporter()

public void Dispose()

protected virtual void Dispose(bool disposing)

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

public abstract ExportResult Export(Batch batch)

public bool ForceFlush(int timeoutMilliseconds = -1)

Flushes the exporter, blocks the current thread until flush completed, shutdown signaled or timed out.

protected virtual bool OnForceFlush(int timeoutMilliseconds)

Called by ForceFlush. This function should block the current thread until flush completed, shutdown signaled or timed out.

protected virtual bool OnShutdown(int timeoutMilliseconds)

Called by Shutdown. This function should block the current thread until shutdown completed or timed out.

public bool Shutdown(int timeoutMilliseconds = -1)

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