CommonModule

PackageFCQRS
Contains common types like Events and Commands

Summary

NameSignatureSynopsis
extractTraceIdextractTraceId cidHelper to extract TraceId from a CID (W3C traceparent format: 00-{traceId}-{spanId}-{flags}) Returns the full CID string if not in traceparent format
sameTracesameTrace cid1 cid2Compare two CIDs by their TraceId (for correlation in distributed tracing scenarios)
traceparentCidtraceparentCid ()No description available.
JournaledMetadataKeyJournaledMetadataKey Metadata key stamped onto DELIVERED aggregate event envelopes: "true" when the event was journaled (PersistEvent family), "false" when it was a deferred or publish-only reply.
DEFAULT_SHARDDEFAULT_SHARD No description available.

extractTraceId

extractTraceId cid
Member
Helper to extract TraceId from a CID (W3C traceparent format: 00-{traceId}-{spanId}-{flags}) Returns the full CID string if not in traceparent format

Parameters

NameTypeDescription
cidCID

Returns

string

sameTrace

sameTrace cid1 cid2
Member
Compare two CIDs by their TraceId (for correlation in distributed tracing scenarios)

Parameters

NameTypeDescription
cid1CID
cid2CID

Returns

bool

traceparentCid

traceparentCid ()
Member

Parameters

NameTypeDescription
unit

Returns

CID

JournaledMetadataKey

JournaledMetadataKey
Member
Metadata key stamped onto DELIVERED aggregate event envelopes: "true" when the event was journaled (PersistEvent family), "false" when it was a deferred or publish-only reply. Only the outbound copy is stamped — the journal record stays clean — so read-your-writes callers can tell whether a projection event will ever follow this ack.

Returns

string

DEFAULT_SHARD

DEFAULT_SHARD
Member

Returns

string