Crate telemetry [] [src]

Telemetry is a mechanism used to capture metrics in an application, to later store the data locally or upload it to a server for statistical analysis.

Examples of usage:

This crate provides an API for recording such data in Histograms and then serializing the data. Uploading the data or storing th data is out of the scope of this crate.

Memory note: the memory used by a histogram is recollected only when its instance of telemetry::Service is garbage-collected. In other words, if a histogram goes out of scope for some reason, its data remains in telemetry and will be stored and/or uploaded in accordance with the configuration of this telemetry instance.

See Mozilla Telemetry Server for an open-source implementation of a server implementing the Telemetry protocol.

Reexports

pub use plain::Histogram;
pub use keyed::KeyedHistogram;

Modules

keyed

Definition of keyed histograms, for data in a set known dynamically.

plain

Definition of plain histograms, for data in a set known at compile-time.

Structs

Service

Enums

SerializationFormat
Subset

Traits

Flatten