WarpSpanExporter

constructor(replica: ReplicaId, store: DurableStore, maxSpans: Int = DEFAULT_MAX_SPANS, bufferPolicy: BufferPolicy = BufferPolicy.DROP_OLDEST, causalClock: WarpCausalClock? = null)

Parameters

replica

The ReplicaId for this device/process. Must be unique and stable across restarts (a UUID is recommended).

store

The DurableStore to persist CRDT state. Use InMemoryDurableStore in tests; wire a platform WAL (JVM file, IndexedDB, etc.) in production.

maxSpans

Maximum number of spans buffered in memory before eviction. Defaults to DEFAULT_MAX_SPANS.

bufferPolicy

What to do when maxSpans is exceeded. Defaults to BufferPolicy.DROP_OLDEST.