Expand description
Saddle structured logging and trace correlation.
The V1 scope is Log and Trace only; the broader name does not imply Metrics
or monitoring-platform delivery in V1. Framework components create an
Observer once and use Observer::start_external_call and
Observer::start_child_call around their async work. Records are queued
without waiting for the output writer.
Structs§
- Active
Call - An in-flight framework boundary.
- Call
Context - The minimum identity propagated through Service, DB and Observability in V1.
- Domain
Event - An explicit business event associated with the current call context.
- Flush
Future - A non-blocking future returned by flush and shutdown lifecycle operations.
- Observer
- Process-level structured logger and trace correlator.
- Observer
Config - Configuration for the bounded non-blocking logger.
- SpanId
- TraceId
Enums§
- Call
Kind - Framework boundaries that automatically produce start and finish records.
- Call
Outcome - Stable completion classification for framework call logs.
- Domain
Event Error - Validation failures for bounded V1 domain events.
- Domain
Value - Scalar domain data that is safe and intentional to include in a log event.
- Event
Level - Stable severity values emitted by Saddle’s JSON logger.
- Flush
Error - A flush or managed shutdown result that is safe to expose to framework code.
- Inbound
Trace - How an external request’s trace identifier was selected.
- Init
Error - Output
Stage - The output operation whose first failure made log delivery unhealthy.
- Trace
IdError - The reason a textual trace identifier cannot be inherited.
Constants§
- MAX_
DOMAIN_ EVENT_ NAME_ BYTES - Maximum UTF-8 byte length of a domain event name.
- MAX_
DOMAIN_ FIELDS - Maximum number of scalar fields in one domain event.
- MAX_
DOMAIN_ FIELD_ NAME_ BYTES - Maximum UTF-8 byte length of a domain field name.
- MAX_
DOMAIN_ PAYLOAD_ BYTES - Maximum encoded JSON bytes for the name and fields of one domain event.
- MAX_
DOMAIN_ STRING_ BYTES - Maximum UTF-8 byte length of one domain string value.
Functions§
- global
- Returns the initialized process observer, if application startup installed it.
- init
- Initializes stdout logging once. Later calls return the first observer.
- trace_
id_ from_ hex - Parses Saddle’s fixed-width hexadecimal trace-id representation.