pub struct ObservabilityConfig {
pub service_name: String,
pub service_version: String,
pub enable_health: bool,
pub enable_metrics: bool,
pub enable_json_log: bool,
pub enable_otlp: bool,
pub enable_profiling: bool,
}Expand description
可观测性服务配置
Fields§
§service_name: String服务名称
service_version: String服务版本
enable_health: bool启用健康检查
enable_metrics: bool启用指标收集
enable_json_log: bool启用 JSON 日志
enable_otlp: bool启用 OTLP 导出
enable_profiling: bool启用性能分析
Implementations§
Trait Implementations§
Source§impl Clone for ObservabilityConfig
impl Clone for ObservabilityConfig
Source§fn clone(&self) -> ObservabilityConfig
fn clone(&self) -> ObservabilityConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObservabilityConfig
impl Debug for ObservabilityConfig
Auto Trait Implementations§
impl Freeze for ObservabilityConfig
impl RefUnwindSafe for ObservabilityConfig
impl Send for ObservabilityConfig
impl Sync for ObservabilityConfig
impl Unpin for ObservabilityConfig
impl UnsafeUnpin for ObservabilityConfig
impl UnwindSafe for ObservabilityConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more