Package-level declarations

Types

Link copied to clipboard
sealed class DomainEvent

Telemetry surface for on-chain spend lifecycle events. Emitted by the trust-domain control plane (org.trustweave.trust.domain.TrustedDomainManager and org.trustweave.trust.domain.treasury.DomainTreasury implementations) so SaaS billing, dashboards, and audit pipelines can subscribe without coupling to ledger internals.

Link copied to clipboard
interface DomainEventSink

Subscriber surface for DomainEvents. Implementations should be cheap and non-throwing — producers wrap emit in best-effort try/catch so a faulty sink cannot abort an on-chain operation that has already been submitted.

Link copied to clipboard
class LoggingDomainEventSink(logger: Logger = LoggerFactory.getLogger(LoggingDomainEventSink::class.java)) : DomainEventSink

Reference DomainEventSink that forwards events to SLF4J. Useful for dev/test, and as a baseline format for shipping to JSON-line aggregators (Loki, CloudWatch, Datadog) via the underlying logging stack's appenders.

Link copied to clipboard

Default no-op sink used when telemetry is not configured.