Package-level declarations
Types
Where WarpLogRecordExporter publishes the operations it applied.
Controls what happens when the in-memory CRDT buffer reaches maxSpans.
A span's position in kuilt's happens-before relation.
What WarpCausalClock.persist did.
What WarpCausalClock.recover found.
What WarpCausalClock.tick did.
The result of a WarpOtlpBridge.drain call.
The result of a WarpSpanExporter.export or WarpSpanExporter.merge call.
Which log records the producer has already delivered to an OtlpEdge, keyed by LogRecord.recordId.
A single log-record shaped to round-trip through OTLP.
Controls what happens when the number of distinct metric series in WarpMetricExporter reaches maxMetrics.
A converged snapshot of every metric series a device holds — counters, gauges, distinct-count estimates, and quantile sketches — bundled into one value that replicates as a whole.
The value-version this producer last delivered for each metric series.
The result of WarpMetricExporter.record and of the single-point mutators built on it. Each arm says what a retry may send: counting an update twice is as wrong as dropping it.
A MetricOverflowException for a histogram: a MetricUpdate.RecordHistogram or MetricUpdate.AddExponentialHistogram would carry the series' total count past Long.MAX_VALUE (#3403), counting the batch's own earlier updates to it. The total is summed over every replica's slots, both signs' buckets and the zero counter, and is the count the OTLP bridge exports, so a series past it is one the bridge could not export. That includes the narrower cases of #3354: this replica's slot in a bucket, or in the zero or overflow counter, passing Long.MAX_VALUE, and counts that each fit but fold onto one bucket past it.
The kind of measurement a metric tracks.
A kind of metric whose persisted series no read has joined into memory yet, because the store refused the read (#3390). Nothing of that kind was applied, and its store key storeKey was not written. The store's refusal is cause. It arrives in a MetricExportResult.Partial's causes or as a MetricWriteResult.Failure's cause; only the exporter constructs one.
Why a WarpMetricExporter.record was refused: an update would carry the series key's total over every replica past Long.MAX_VALUE. The total is what the OTLP bridge exports, so a series past it is one the bridge skips. The narrower case, this replica's own slot passing Long.MAX_VALUE, is part of it: a wrapped slot would be negative, and a counter's merge, a max, would drop it, so the update would be lost everywhere with nothing to say so. It arrives as a MetricExportResult.Refused, and the batch that carried it applied nothing.
A single metric data point, rendered from a WarpMetricExporter CRDT (via MetricCatalog) into the shape OTLP puts on the wire. The bridge produces these; an OtlpEdge serializes them — the edge never reaches into the CRDTs directly.
A MetricOverflowException for a sum: an increment would carry the sum series key's total past Long.MAX_VALUE (#3445), counting the batch's own earlier increments to it. The total is summed over every replica's slot, a peer's merged in included, and is the value the OTLP bridge exports, so a series past it is one the bridge could not export. That includes the narrower case of #3318, this replica's own slot passing Long.MAX_VALUE.
One local change to a WarpMetricExporter series, as a value — the element of a batch handed to WarpMetricExporter.record.
The result of a merge* on WarpMetricExporter, or of WarpMetricExporter.clear. A merge is a lattice join and a clear is a delete, so either may always be called again: a second merge of the same state changes nothing, and a second clear deletes what the first could not.
An OTLP-capable edge that WarpOtlpBridge drains converged CRDTs into.
One of the three OTLP signals WarpOtlpBridge drains.
One signal's failure within a WarpOtlpBridge.drain.
A compact summary of which spans this producer has already delivered to an OtlpEdge, keyed by span id.
A derived causal edge: span fromSpanId could have been caused by the predecessor span identified by linkedTraceId / linkedSpanId.
A completed span record, shaped to round-trip through OTLP.
OTLP span status.
Health of the local telemetry buffers, in each signal's own units.
Mints causal Dots for spans and tracks the current happens-before frontier.
A CRDT-backed log-record exporter.
A CRDT-backed metric exporter for cumulative sums, gauges, cardinality estimates, and exponential histograms.
Drains converged CRDTs — spans, logs, and metrics — to an OTLP-capable OtlpEdge, reconciling each signal by its own producer-local digest so a re-drain sends only records absent from that digest.
A CRDT-backed span exporter.
A CRDT-backed, offline-first telemetry surface for Kotlin Multiplatform.
Properties
Default operations per persisted log segment — the ceiling on how many bytes one WarpLogRecordExporter.export rewrites, outside the one whole-log adopt an export owes after a refused merge.
Maximum number of LogRecords buffered in memory before eviction.
Default maximum number of distinct metric series buffered in memory.
Maximum number of SpanRecords buffered in memory before eviction.
The default OTLP scale for WarpMetricExporter histograms. Scale 5 gives α ≈ 1.083% — the closest OTLP-aligned accuracy to DDSketch.DEFAULT_RELATIVE_ACCURACY (1%), at ≈32 buckets per power of two.
Largest OTLP exponential-histogram scale (base 2^(2^−20) — ~0.000033% relative accuracy).
Smallest supported OTLP exponential-histogram scale (base 2^32, α ≈ 1 − 4.7·10⁻¹⁰). OTLP itself permits scales down to −10, but below −5 the equivalent DDSketch α rounds to 1.0 in a Double (and at −10 the base 2^1024 overflows entirely), so no valid sketch exists for those scales.
Functions
Derive SpanLinks from the happens-before relation recorded in each span's SpanRecord.causalStamp.
The integer OTLP scale whose base equals a DDSketch's bucket growth factor γ = (1+relativeAccuracy)/(1−relativeAccuracy) — the inverse of alphaForOtlpScale.