<PackageReference Include="Azure.Monitor.OpenTelemetry.Exporter" Version="1.10.0" />

Azure.Monitor.OpenTelemetry.Exporter.Internals.ITransmitter

string InstrumentationKey { get; }

While the returned scope is held, telemetry is written to persistent storage instead of being transmitted. Held across the shutdown drain so process exit costs a file write rather than an ingestion round trip.

void DrainStorage(int waitMilliseconds)

Starts a background drain of persisted telemetry and waits at most waitMilliseconds for it. Anything left behind stays on disk and is picked up by a later drain, in this process or the next one.

ValueTask<ExportResult> TrackAsync(IEnumerable<TelemetryItem> telemetryItems, TelemetrySchemaTypeCounter telemetrySchemaTypeCounter, TelemetryItemOrigin origin, bool async, CancellationToken cancellationToken)

Sent telemetry and return the number of items Accepted.