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: TelemetryStatusWhat the upload policy is doing right now.
dropped: u64Records lost for any reason (sum of the dropped_* fields).
dropped_queue_full: u64Records evicted from the in-memory queue, and spans dropped from a full span buffer.
dropped_cache_error: u64Records lost because no cache, not even memory, could take their batch.
dropped_cache_full: u64Records evicted from the cache by its size or file-count bound.
dropped_expired: u64Records in cached batches past the 24 h age limit.
dropped_corrupt: u64Records in cached batches that failed their integrity check.
dropped_invalid: u64Custom events and attributes refused at the door, over the limits.
dropped_rejected: u64Records the collector rejected (a final 4xx/5xx, or a partial success).
dropped_oversized: u64Single records larger than the collector accepts.
dropped_throttled: u64Records evicted from the cache while the collector held uploads off.
dropped_disabled: u64Records for a project that receives nothing (self-hosted, no grant, disabled, 404).
dropped_rate_limited: u64Discrete events dropped by the flood guard.
dropped_purged: u64Records deleted by the opt-out.
uploads_sent: u64Batches the collector accepted.
upload_bytes: u64Compressed bytes the collector accepted.
upload_failures: u64Upload attempts that failed transiently before the timeout (a network error, 429, 5xx).
upload_timeouts: u64Upload attempts that got no answer within export_timeout_ms; not counted as failures.
Tokens the collector refused (401/403).
holds_capped: u64Soft holds that reached the cap.
cache_write_errors: u64Batches the disk cache could not store, kept in memory instead.
cached_batches: u64Batches currently waiting in the cache.
Implementations§
Source§impl TelemetryStats
impl TelemetryStats
Sourcepub fn failed_attempts(&self) -> u64
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
impl Clone for TelemetryStats
Source§impl Debug for TelemetryStats
impl Debug for TelemetryStats
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.
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.