Skip to main content

saddle_observability/
lib.rs

1//! Saddle structured logging and trace correlation.
2//!
3//! The V1 scope is Log and Trace only; the broader name does not imply Metrics
4//! or monitoring-platform delivery in V1. Framework components create an
5//! [`Observer`] once and use [`Observer::start_external_call`] and
6//! [`Observer::start_child_call`] around their async work. Records are queued
7//! without waiting for the output writer.
8
9mod call;
10mod event;
11#[doc(hidden)]
12#[allow(dead_code)] // Cross-crate candidate is consumed by the later Runtime integration slice.
13pub mod file;
14mod logger;
15mod production_fact;
16mod trace;
17
18pub use call::{ActiveCall, CallKind, CallOutcome};
19pub use event::{
20    DomainEvent, DomainEventError, DomainValue, EventLevel, MAX_DOMAIN_EVENT_NAME_BYTES,
21    MAX_DOMAIN_FIELD_NAME_BYTES, MAX_DOMAIN_FIELDS, MAX_DOMAIN_PAYLOAD_BYTES,
22    MAX_DOMAIN_STRING_BYTES,
23};
24pub use logger::{
25    FlushError, FlushFuture, InitError, Observer, ObserverConfig, OutputStage, global, init,
26};
27#[doc(hidden)]
28pub use production_fact::{
29    ObservabilityProductionFactError, ObservabilityProductionFactInput,
30    ObservabilitySourceCandidateInput, ObservabilitySourceCandidateRejection,
31    VerifiedObservabilitySourceCandidateOwner, bind_observability_source_candidate,
32    observability_production_fact_input, observability_source_candidate_input,
33};
34pub use saddle_core::{CallContext, SpanId, TraceId};
35pub use trace::{InboundTrace, TraceIdError, trace_id_from_hex};