#[non_exhaustive]pub enum TelemetryEvent {
NodeStep(NodeStepTelemetry),
EdgeSnapshot(EdgeSnapshotTelemetry),
Runtime(RuntimeTelemetryEvent),
}Expand description
Discriminated union of all structured telemetry events.
This is the type carried by event writers and is the payload for all structured telemetry emission.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NodeStep(NodeStepTelemetry)
Node level timing and throughput information for a single step.
EdgeSnapshot(EdgeSnapshotTelemetry)
Edge level snapshot representing queue state and watermarks.
Runtime(RuntimeTelemetryEvent)
Runtime level lifecycle and connectivity event.
Implementations§
Source§impl TelemetryEvent
impl TelemetryEvent
Sourcepub const fn node_step(ev: NodeStepTelemetry) -> Self
pub const fn node_step(ev: NodeStepTelemetry) -> Self
Creates a telemetry event from a node step telemetry record.
Sourcepub const fn edge_snapshot(ev: EdgeSnapshotTelemetry) -> Self
pub const fn edge_snapshot(ev: EdgeSnapshotTelemetry) -> Self
Creates a telemetry event from an edge snapshot telemetry record.
Sourcepub const fn runtime(ev: RuntimeTelemetryEvent) -> Self
pub const fn runtime(ev: RuntimeTelemetryEvent) -> Self
Creates a telemetry event from a runtime telemetry event record.
Trait Implementations§
Source§impl Clone for TelemetryEvent
impl Clone for TelemetryEvent
Source§fn clone(&self) -> TelemetryEvent
fn clone(&self) -> TelemetryEvent
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 TelemetryEvent
impl Debug for TelemetryEvent
impl Copy for TelemetryEvent
Auto Trait Implementations§
impl Freeze for TelemetryEvent
impl RefUnwindSafe for TelemetryEvent
impl Send for TelemetryEvent
impl Sync for TelemetryEvent
impl Unpin for TelemetryEvent
impl UnsafeUnpin for TelemetryEvent
impl UnwindSafe for TelemetryEvent
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