Expand description
Common utilities and shared components for Sentinel proxy
This crate provides shared functionality used across all Sentinel components, including observability (metrics, logging, tracing), error types, and common utilities.
§Module Organization
ids: Type-safe identifier newtypes (CorrelationId, RequestId, etc.)types: Common type definitions (ByteSize, Priority, etc.)errors: Error types and result aliaseslimits: Resource limits and rate limitingobservability: Metrics, logging, and tracingcircuit_breaker: Circuit breaker state machineregistry: Generic type-safe registry abstraction
Re-exports§
pub use observability::init_tracing;pub use observability::AuditLogEntry;pub use observability::ComponentHealth;pub use observability::ComponentHealthTracker;pub use observability::HealthStatus;pub use observability::RequestMetrics;pub use errors::SentinelError;pub use errors::SentinelResult;pub use limits::Limits;pub use limits::RateLimiter;pub use ids::AgentId;pub use ids::CorrelationId;pub use ids::RequestId;pub use ids::RouteId;pub use ids::UpstreamId;pub use types::CircuitBreakerConfig;pub use types::TraceIdFormat;pub use circuit_breaker::CircuitBreaker;pub use registry::Registry;
Modules§
- circuit_
breaker - Circuit breaker implementation for resilient service protection
- errors
- Error types for Sentinel proxy
- ids
- Type-safe identifier newtypes for Sentinel proxy.
- limits
- Limits and rate limiting for Sentinel proxy
- observability
- Observability module for Sentinel proxy
- registry
- Generic registry for thread-safe storage of named components.
- types
- Common type definitions for Sentinel proxy.
Type Aliases§
- Health
Checker Deprecated