Skip to main content

TelemetryStats

Struct TelemetryStats 

Source
pub struct TelemetryStats {
Show 22 fields pub status: TelemetryStatus, pub dropped: u64, pub dropped_queue_full: u64, pub dropped_cache_error: u64, pub dropped_cache_full: u64, pub dropped_expired: u64, pub dropped_corrupt: u64, pub dropped_invalid: u64, pub dropped_rejected: u64, pub dropped_oversized: u64, pub dropped_throttled: u64, pub dropped_disabled: u64, pub dropped_rate_limited: u64, pub dropped_purged: u64, pub uploads_sent: u64, pub upload_bytes: u64, pub upload_failures: u64, pub upload_timeouts: u64, pub uploads_unauthorized: u64, pub holds_capped: u64, pub cache_write_errors: u64, pub cached_batches: u64,
}
Expand description

Pipeline health as seen by the SDK: Telemetry::stats.

Fields§

§status: TelemetryStatus

What the upload policy is doing right now.

§dropped: u64

Records lost for any reason (sum of the dropped_* fields).

§dropped_queue_full: u64

Records evicted from the in-memory queue, and spans dropped from a full span buffer.

§dropped_cache_error: u64

Records lost because no cache, not even memory, could take their batch.

§dropped_cache_full: u64

Records evicted from the cache by its size or file-count bound.

§dropped_expired: u64

Records in cached batches past the 24 h age limit.

§dropped_corrupt: u64

Records in cached batches that failed their integrity check.

§dropped_invalid: u64

Custom events and attributes refused at the door, over the limits.

§dropped_rejected: u64

Records the collector rejected (a final 4xx/5xx, or a partial success).

§dropped_oversized: u64

Single records larger than the collector accepts.

§dropped_throttled: u64

Records evicted from the cache while the collector held uploads off.

§dropped_disabled: u64

Records for a project that receives nothing (self-hosted, no grant, disabled, 404).

§dropped_rate_limited: u64

Discrete events dropped by the flood guard.

§dropped_purged: u64

Records deleted by the opt-out.

§uploads_sent: u64

Batches the collector accepted.

§upload_bytes: u64

Compressed bytes the collector accepted.

§upload_failures: u64

Upload attempts that failed transiently before the timeout (a network error, 429, 5xx).

§upload_timeouts: u64

Upload attempts that got no answer within export_timeout_ms; not counted as failures.

§uploads_unauthorized: u64

Tokens the collector refused (401/403).

§holds_capped: u64

Soft holds that reached the cap.

§cache_write_errors: u64

Batches the disk cache could not store, kept in memory instead.

§cached_batches: u64

Batches currently waiting in the cache.

Implementations§

Source§

impl TelemetryStats

Source

pub fn failed_attempts(&self) -> u64

Upload attempts that did not get through: upload_failures and upload_timeouts together, the “failed” of the Display line and of the report’s body.

Trait Implementations§

Source§

impl Clone for TelemetryStats

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for TelemetryStats

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for TelemetryStats

One line for a debug console: status, throughput, one backlog number, “failed” (failures and timeouts together, TelemetryStats::failed_attempts), one loss number, then the loss breakdown.

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Eq for TelemetryStats

Source§

impl PartialEq for TelemetryStats

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for TelemetryStats

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V