footing 0.6.4

Feature-gated foundations for Rust backend services
Documentation
//! Structured event values, trace identifiers, health reporting, and metrics.
//!
//! `observability` supplies these shared primitives without a log subscriber or
//! timestamp formatter. HTTP metrics and workers enable it automatically.
//! Enable `logging` for log formatting, filtering, and subscriber setup through
//! `footing::logging`. Applications can also use their own tracing subscriber.

mod context;
mod error;
mod event;
mod health;
mod metrics;
#[cfg(any(feature = "http-metrics", feature = "worker"))]
mod recording;
mod schema;

pub use context::TraceContext;
pub use error::ObservabilityError;
pub use event::{EventKind, EventOutcome, StructuredEvent, TraceFields};
pub use health::{
    HealthCheck, HealthReport, HealthState, MAX_HEALTH_MESSAGE_LENGTH, MAX_HEALTH_NAME_LENGTH,
};
pub use metrics::{
    DEFAULT_HISTOGRAM_BUCKETS, DEFAULT_MAX_METRIC_LABEL_VALUE_LENGTH, DEFAULT_MAX_METRIC_SERIES,
    DEFAULT_MAX_METRIC_SERIES_PER_METRIC, MAX_HISTOGRAM_BUCKETS, MAX_METRIC_LABEL_KEY_LENGTH,
    MAX_METRIC_LABEL_VALUE_LENGTH, MAX_METRIC_LABELS, MAX_METRIC_NAME_LENGTH, MetricKind,
    MetricLabels, MetricRecorder, MetricRegistry, MetricRegistryLimits, MetricSample, MetricsError,
    MetricsSnapshot, encode_openmetrics, encode_prometheus,
};
#[cfg(any(feature = "http-metrics", feature = "worker"))]
pub(crate) use recording::RecordingFailures;
pub use schema::{event_names, metric_labels, metric_names, metric_outcomes, trace_fields};
#[cfg(test)]
mod tests;