Builds a TraceService layer that wraps each write into a fresh Message
and forwards it to the provided TraceSink. Intended for tests and lightweight
fixtures.
Options:
meta: stamped on every emitted message (defaults to {}).
clock: timestamp source (defaults to Date.now). Pass a monotonic counter
in tests to make event ordering deterministic when many writes happen in the same
millisecond.
Builds a TraceService layer that wraps each
writeinto a fresh Message and forwards it to the provided TraceSink. Intended for tests and lightweight fixtures.Options:
meta: stamped on every emitted message (defaults to{}).clock: timestamp source (defaults to Date.now). Pass a monotonic counter in tests to make event ordering deterministic when many writes happen in the same millisecond.