snapshot
Read a snapshot of the current in-memory ORSet for gossip / anti-entropy.
Once a read of the stored spans has landed, the set holds what it found, joined with every remote set merged and every span exported since, less the buffer cap's evictions and what clear dropped. Until then it holds only the remote sets merged meanwhile: neither the stored spans nor any local export, which waits for that read (#3390).
A local export shows here only once its writes have returned (#3517), so every dot this process's exports minted that the set holds was durable when it showed. An export whose writes are in flight, or failed, is not here.
Durable is not final, though. A failed write can still commit after its caller stopped waiting, over newer bytes (DurableStore.write). The exporter keeps such a turn's set dot, so the span shown next never shares it. What that leaves open: a restart over the late commit reads a set context that lacks the set dots of spans shown after the failed one, so an export it makes before a peer hands those spans back can mint one of them again. It also reaches them by a second route: an export that fails in that window keeps the dot it minted, and if a peer then hands back a span on that same dot, the next export's turn drops it, since the kept context has seen the dot and holds no span on it. A successful export in that window loses the handed-back span as well, so this route widens the residual rather than opening it (#3544). The clock's dots are not affected, since the clock key is written ahead of each span write and only after it returns.