send

abstract suspend fun send(spans: Set<SpanRecord>, links: List<SpanLink> = emptyList())

Push a batch of spans to the edge, with their inferred causal links.

links carries the SpanLinks the bridge inferred for the spans in this batch (happens-before edges derived from causal stamps); the edge attaches each to its owning span's OTLP Span.links. Defaults to empty so a link-unaware caller — or a span with no links — is unaffected.

The edge must apply spans idempotently by span id. WarpOtlpBridge filters ids already in digest; a lost digest or failed acknowledgement may cause another send, so the backend must provide that delivery deduplication. This requirement does not deduplicate the local span buffer: an unstamped export retried after an indeterminate write and a restart can leave distinct stamped values with the same id (see SpanRecord).

spans is non-empty when called by the bridge (an empty delta is never sent).

Throws on send failure; WarpOtlpBridge reports the exception, tagged OtlpSignal.SPANS, in a DrainResult.Partial or DrainResult.Failure.