Skip to main content

Crate athena_observability

Crate athena_observability 

Source
Expand description

Portable Athena observability primitives.

This crate owns the reusable observability domain that can be shared across the Athena server runtime, future adapters, and helper binaries without depending on Actix, AppState, or route-local database registries.

The current scope covers:

  • in-memory metrics state and classification helpers,
  • batched client statistics writes,
  • optional Linux NDJSON log sinks for gateway traffic,
  • reusable gateway log contracts, redaction helpers, and trace emitters.

Re-exports§

pub use client_stats::ClientStatsBatcher;
pub use client_stats::ClientStatsBatcherConfig;
pub use gateway_logging::LoggedRequest;
pub use gateway_logging::RequestAuthLogContext;
pub use gateway_logging::RequestCompletionLogContext;
pub use gateway_logging::RouteRequestLogContext;
pub use gateway_logging::emit_gateway_operation_trace;
pub use gateway_logging::is_sensitive_field_name;
pub use gateway_logging::redact_json_value;
pub use gateway_logging::redact_optional_secret;
pub use gateway_logging::redact_query_string;
pub use linux_gateway_file_log::API_KEY_AUTH_LOG_FILENAME;
pub use linux_gateway_file_log::GATEWAY_OPERATION_LOG_FILENAME;
pub use linux_gateway_file_log::GATEWAY_REQUEST_LOG_FILENAME;
pub use linux_gateway_file_log::LinuxGatewayFileLog;
pub use metrics::ClusterProbeMetric;
pub use metrics::DURATION_BUCKETS_SECONDS;
pub use metrics::DurationSummary;
pub use metrics::GatewayOperationMetric;
pub use metrics::HttpMetric;
pub use metrics::HttpRouteMetric;
pub use metrics::ManagementMetric;
pub use metrics::MetricsState;
pub use metrics::ValueSummary;
pub use metrics::gateway_error_class;
pub use metrics::route_group;
pub use metrics::status_family;

Modules§

client_stats
Batched writes for gateway-facing client statistics tables.
gateway_logging
Shared gateway log contracts, redaction helpers, and trace emitters.
linux_gateway_file_log
Optional Linux file sink for gateway request/operation logs and api_key_auth_log (NDJSON).
metrics
Shared in-memory metrics state and classification helpers.