drain

suspend fun drain(edge: OtlpEdge): DrainResult

Drain everything the edge is missing, across all three signals.

Reconnects compare against each signal's digest. Records absent from it may be resent, so delivery retries rely on the edge's idempotency contract. This does not make retries of WarpSpanExporter.export idempotent.

Return

DrainResult.Success when no attempted signal failed, DrainResult.Partial when some succeeded and some failed, or DrainResult.Failure when every attempted signal failed. Failures carry the signal and the exception its edge call threw.

Parameters

edge

the OTLP-capable backend to drain into.