DrainResult

sealed interface DrainResult

The result of a WarpOtlpBridge.drain call.

A drain is best-effort: a Failure means the edge was unreachable or rejected the batch, not that local data was lost. The CRDT is unchanged on failure; the next drain will retry the same delta.

Inheritors

Types

Link copied to clipboard
data class Failure(val cause: Throwable) : DrainResult

The drain failed — either OtlpEdge.digest or OtlpEdge.send threw.

Link copied to clipboard
data class Success(val spansSent: Int, val logsSent: Int = 0, val metricPointsSent: Int = 0) : DrainResult

The drain completed (fully or partially) — at least one signal got through, or there was nothing to send.