Skip to main content

Crate ahri_tre_observability

Crate ahri_tre_observability 

Source
Expand description

Safe, bounded operational events. Libraries never install a subscriber.

Structs§

ConfigurationProvenance
Immutable provenance copied from the owning executable’s resolved state. Validation prevents free text from entering the operational schema.
CorrelationContext
Non-authoritative correlation; parentage is meaningful only within a process.
LifecycleSpan
Observes existing work without changing its result, cancellation or authority. There is deliberately no Drop completion: a lost process cannot claim an outcome.
Logging
Owns bounded asynchronous delivery. Dropping this handle never joins a potentially blocked writer. flush is an explicit, bounded best effort.
OperationSpan
Explicitly pass context() across execution boundaries; no ambient span is entered across an async suspension. Completing a span emits one event.
OperationalLayer

Enums§

FailureCategory
Measurement
Optional numeric evidence has a closed vocabulary and contains no content.
Operation
Outcome
Phase
Existing process and recovery boundaries; no caller-controlled phase names.
ProcessEvent
Release-owned process signals; no provider errors or listener details enter logs.
PublicErrorCode
Already-public protocol codes retained without error messages or details.
ServiceRole
Stage

Constants§

MAX_EVENT_BYTES
Maximum serialized JSON size, excluding its terminating newline.
QUEUE_CAPACITY
Drop newest when all 256 event slots are occupied. The worker can hold one additional event. Failed writes are discarded, never retried indefinitely.