pub struct RuntimeObservationConfig { /* private fields */ }Expand description
Query-local recorder configuration.
Default disables capture. Self::native_execution enables the bounded
native profile. Record and byte caps limit retained detail independently of
the terminal outcome and the exact source totals.
Implementations§
Source§impl RuntimeObservationConfig
impl RuntimeObservationConfig
Sourcepub const NATIVE_EXECUTION_MAX_RECORDS: u64 = 65_536
pub const NATIVE_EXECUTION_MAX_RECORDS: u64 = 65_536
Default bounded capture used by native execution adapters.
Sourcepub const NATIVE_EXECUTION_MAX_BYTES: u64
pub const NATIVE_EXECUTION_MAX_BYTES: u64
Deterministic logical-byte cap paired with Self::NATIVE_EXECUTION_MAX_RECORDS.
Sourcepub const fn disabled() -> RuntimeObservationConfig
pub const fn disabled() -> RuntimeObservationConfig
Disables runtime recording.
Sourcepub const fn bounded(
max_retained_records: u64,
max_retained_bytes: u64,
) -> RuntimeObservationConfig
pub const fn bounded( max_retained_records: u64, max_retained_bytes: u64, ) -> RuntimeObservationConfig
Enables recording with deterministic record and logical-byte caps. Zero caps permit recording attempts but retain no records.
Sourcepub const fn native_execution() -> RuntimeObservationConfig
pub const fn native_execution() -> RuntimeObservationConfig
Enables the bounded per-query native execution capture profile.
Sourcepub const fn limits(self) -> RuntimeObservationLimits
pub const fn limits(self) -> RuntimeObservationLimits
Returns the configured retention limits.
Trait Implementations§
Source§impl Clone for RuntimeObservationConfig
impl Clone for RuntimeObservationConfig
Source§fn clone(&self) -> RuntimeObservationConfig
fn clone(&self) -> RuntimeObservationConfig
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 moreimpl Copy for RuntimeObservationConfig
Source§impl Debug for RuntimeObservationConfig
impl Debug for RuntimeObservationConfig
Source§impl Default for RuntimeObservationConfig
impl Default for RuntimeObservationConfig
Source§fn default() -> RuntimeObservationConfig
fn default() -> RuntimeObservationConfig
Returns the “default value” for a type. Read more
impl Eq for RuntimeObservationConfig
Source§impl PartialEq for RuntimeObservationConfig
impl PartialEq for RuntimeObservationConfig
impl StructuralPartialEq for RuntimeObservationConfig
Auto Trait Implementations§
impl Freeze for RuntimeObservationConfig
impl RefUnwindSafe for RuntimeObservationConfig
impl Send for RuntimeObservationConfig
impl Sync for RuntimeObservationConfig
impl Unpin for RuntimeObservationConfig
impl UnsafeUnpin for RuntimeObservationConfig
impl UnwindSafe for RuntimeObservationConfig
Blanket Implementations§
impl<T> Allocation for T
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request