pub struct ObservabilityConfig {
pub log_requests: bool,
pub otlp_endpoint: Option<String>,
pub service_name: String,
pub diag_baseline: DiagBaseline,
pub debug_directive_key: Option<String>,
pub directive_admin_token: Option<String>,
pub debug_endpoints: bool,
pub log_diagnostic_captures: bool,
}Expand description
Observability and control-plane channel settings.
Fields§
§log_requests: boolWhether to emit a structured JSON log line per request.
otlp_endpoint: Option<String>The OTLP collector base URL for span export, or None (export off).
service_name: StringThe service.name reported on exported spans.
diag_baseline: DiagBaselineThe baseline diagnostics verbosity applied before any directive.
debug_directive_key: Option<String>The shared HMAC key verifying signed X-Debug-Directive headers, or None.
directive_admin_token: Option<String>The bearer token gating POST/GET /admin/directives, or None (disabled).
debug_endpoints: boolWhether the pre-auth /debug/explain and /debug/breakglass surfaces are
served (default true). Set false in production so operational metadata
is not exposed unauthenticated; /metrics stays on regardless.
log_diagnostic_captures: boolWhether directive-selected break-glass captures are also pushed off-instance
as structured JSON lines (default false), so a fleet aggregator can serve
them by trace_id rather than only the local per-instance ring (docs/05
§5). The fleet-coherent counterpart of the break-glass tape.
Trait Implementations§
Source§impl Clone for ObservabilityConfig
impl Clone for ObservabilityConfig
Source§fn clone(&self) -> ObservabilityConfig
fn clone(&self) -> ObservabilityConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObservabilityConfig
impl Debug for ObservabilityConfig
impl Eq for ObservabilityConfig
Source§impl PartialEq for ObservabilityConfig
impl PartialEq for ObservabilityConfig
Source§fn eq(&self, other: &ObservabilityConfig) -> bool
fn eq(&self, other: &ObservabilityConfig) -> bool
self and other values to be equal, and is used by ==.