Racket
15 Structured event logging🔗ℹ
Processes explicitly require commerce/log to observe their
own transitions. Events are structured and redacted by construction:
correlation keys are a closed whitelist (provider, event id, order id,
subject, offer, outbox work, entitlement and revision, claim, sequence) and
field values are redaction-safe scalars — strings, exact integers,
booleans, and kebab-case workflow or error symbols. Raw provider bytes,
tokens, and unlisted keys are rejected before emission.
Emits one structured, redacted event at 'debug, 'info,
'warning, or 'error. Public surfaces instrument their own
transitions: journal acceptance and conflict, projection and blocking,
lease claim/complete/release, redrive, and claim fulfillment or refusal.
Exact replays and idle polling log at 'debug; transitions log at
'info; conflicts, refusals, and lost leases log at
'warning. Transport formatting and shipping are deployment
concerns.
The commerce topic logger; the health reporter emits typed warnings on it.