pub struct CollectorHealth {
pub fast: TierHealth,
pub medium: TierHealth,
pub slow: TierHealth,
pub on_demand: TierHealth,
pub dropped_samples: u64,
pub coalesced_samples: u64,
pub lag: Duration,
pub issues: Vec<CollectorIssue>,
pub self_overhead: Option<SelfOverhead>,
}Expand description
Overall collector health.
Fields§
§fast: TierHealthFast tier timing.
medium: TierHealthMedium tier timing.
slow: TierHealthSlow tier timing.
on_demand: TierHealthOn-demand detail worker timing.
dropped_samples: u64Snapshots dropped because the channel was full.
coalesced_samples: u64Snapshots superseded before the UI rendered them (§10.3).
lag: DurationHow far behind live the most recent snapshot is.
Rendered in the header when it exceeds the sample interval, which is what §16.2 means by “display collector lag”.
issues: Vec<CollectorIssue>Distinct problems, at most MAX_RETAINED_ISSUES.
self_overhead: Option<SelfOverhead>Our own overhead.
Implementations§
Source§impl CollectorHealth
impl CollectorHealth
Sourcepub const fn tier(&self, tier: Tier) -> &TierHealth
pub const fn tier(&self, tier: Tier) -> &TierHealth
Timing for one tier.
Sourcepub fn record_issue(
&mut self,
source: &str,
message: &str,
since_start: Duration,
)
pub fn record_issue( &mut self, source: &str, message: &str, since_start: Duration, )
Records an issue, merging it into an existing entry when the source and message match, and dropping it once the list is full.
Dropping rather than evicting keeps the first distinct failures, which are usually the root cause; a later flood cannot push them out.
Trait Implementations§
Source§impl Clone for CollectorHealth
impl Clone for CollectorHealth
Source§fn clone(&self) -> CollectorHealth
fn clone(&self) -> CollectorHealth
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 CollectorHealth
impl Debug for CollectorHealth
Source§impl Default for CollectorHealth
impl Default for CollectorHealth
Source§fn default() -> CollectorHealth
fn default() -> CollectorHealth
Returns the “default value” for a type. Read more
Source§impl PartialEq for CollectorHealth
impl PartialEq for CollectorHealth
impl StructuralPartialEq for CollectorHealth
Auto Trait Implementations§
impl Freeze for CollectorHealth
impl RefUnwindSafe for CollectorHealth
impl Send for CollectorHealth
impl Sync for CollectorHealth
impl Unpin for CollectorHealth
impl UnsafeUnpin for CollectorHealth
impl UnwindSafe for CollectorHealth
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