pub struct FerrumObservabilityConfig {
pub entrypoint: ProfileEntrypoint,
pub model: String,
pub profile_jsonl: Option<PathBuf>,
pub profile_detail: ObservabilityProfileDetail,
pub memory_profile_jsonl: Option<PathBuf>,
pub scheduler_trace_jsonl: Option<PathBuf>,
pub request_dump_dir: Option<PathBuf>,
pub profile_sample_rate: f64,
}Fields§
§entrypoint: ProfileEntrypoint§model: String§profile_jsonl: Option<PathBuf>§profile_detail: ObservabilityProfileDetail§memory_profile_jsonl: Option<PathBuf>§scheduler_trace_jsonl: Option<PathBuf>§request_dump_dir: Option<PathBuf>§profile_sample_rate: f64Implementations§
Source§impl FerrumObservabilityConfig
impl FerrumObservabilityConfig
pub fn new( entrypoint: ProfileEntrypoint, model: impl Into<String>, profile_jsonl: Option<PathBuf>, profile_detail: ObservabilityProfileDetail, memory_profile_jsonl: Option<PathBuf>, scheduler_trace_jsonl: Option<PathBuf>, request_dump_dir: Option<PathBuf>, profile_sample_rate: f64, ) -> Self
pub fn enabled(&self) -> bool
pub fn synthetic_no_weight_enabled(&self) -> bool
pub fn unified_product_profile_enabled(&self) -> bool
pub fn validate(&self) -> Result<(), String>
Trait Implementations§
Source§impl Clone for FerrumObservabilityConfig
impl Clone for FerrumObservabilityConfig
Source§fn clone(&self) -> FerrumObservabilityConfig
fn clone(&self) -> FerrumObservabilityConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FerrumObservabilityConfig
impl Debug for FerrumObservabilityConfig
Source§impl<'de> Deserialize<'de> for FerrumObservabilityConfig
impl<'de> Deserialize<'de> for FerrumObservabilityConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for FerrumObservabilityConfig
Auto Trait Implementations§
impl Freeze for FerrumObservabilityConfig
impl RefUnwindSafe for FerrumObservabilityConfig
impl Send for FerrumObservabilityConfig
impl Sync for FerrumObservabilityConfig
impl Unpin for FerrumObservabilityConfig
impl UnsafeUnpin for FerrumObservabilityConfig
impl UnwindSafe for FerrumObservabilityConfig
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