footing 0.4.3

Feature-gated foundations for Rust backend services
Documentation
//! Structured events, tracing, health reporting, and metrics.

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

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", feature = "worker"))]
pub(crate) use recording::RecordingFailures;
pub use schema::{event_names, metric_labels, metric_names, metric_outcomes, trace_fields};
pub use tracing::{
    LogTimeZone, MAX_TRACING_SERVICE_NAME_LENGTH, TraceContext, TracingConfig, init,
    tracing_filter, tracing_layer,
};

#[cfg(test)]
use tracing::env_filter_from;

#[cfg(test)]
mod tests;