pub struct TelemetryRecorder { /* private fields */ }Expand description
Lightweight recorder scoped to one business component.
Implementations§
Source§impl TelemetryRecorder
impl TelemetryRecorder
Sourcepub fn is_active(&self) -> bool
pub fn is_active(&self) -> bool
Returns whether the parent runtime currently admits telemetry records.
Sourcepub fn trace_policy(&self) -> TracePolicy
pub fn trace_policy(&self) -> TracePolicy
Returns the parent handle’s current trace policy.
Sourcepub fn metric_label_policy(&self) -> MetricLabelPolicy
pub fn metric_label_policy(&self) -> MetricLabelPolicy
Returns the parent handle’s instance-scoped metric-label policy.
Trait Implementations§
Source§impl Clone for TelemetryRecorder
impl Clone for TelemetryRecorder
Auto Trait Implementations§
impl !RefUnwindSafe for TelemetryRecorder
impl !UnwindSafe for TelemetryRecorder
impl Freeze for TelemetryRecorder
impl Send for TelemetryRecorder
impl Sync for TelemetryRecorder
impl Unpin for TelemetryRecorder
impl UnsafeUnpin for TelemetryRecorder
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