Struct nakadion::publisher::TelemetryDriver[][src]

pub struct TelemetryDriver { /* fields omitted */ }
Expand description

Triggers registered ProcessesTelemetryMessages to poll for messages.

Runs its own background thread. The thread stops once this struct is dropped.

A TelemetryDriver can be ‘mounted’ into the hierarchy. If done so, it will still poll its children on its own thread independently.

Optional Metrics

The driver can be configured to collect metrics on its own activities.

The metrics will be added to all snapshots under a field named _metrix which contains the following fields:

  • collections_per_second: The number of observation collection runs done per second

  • collection_times_us: A histogram of the time each observation collection took in microseconds.

  • observations_processed_per_second: The number of observations processed per second.

  • observations_processed_per_collection: A histogram of the number of observations processed during each run

  • observations_dropped_per_second: The number of observations dropped per second. See also max_observation_age.

  • observations_dropped_per_collection: A histogram of the number of observations dropped during each run. See also max_observation_age.

  • snapshots_per_second: The number of snapshots taken per second.

  • snapshots_times_us: A histogram of the times it took to take a snapshot in microseconds

  • dropped_observations_alarm: Will be true if observations have been dropped. Will by default stay true for 60 seconds once triggered.

  • inactivity_alarm: Will be true if no observations have been made for a certain amount of time. The default is 60 seconds.

Implementations

Creates a new TelemetryDriver.

max_observation_age is the maximum age of an Observation to be taken into account. This is determined by the timestamp field of an Observation. Observations that are too old are simply dropped. The default is 60 seconds.

Gets the name of this driver

Changes the ProcessingStrategy

Pauses processing of observations.

Resumes processing of observations

Trait Implementations

Add a processor.

Add a snapshooter.

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Returns the “default value” for a type. Read more

Receive and handle pending operations

Puts the current snapshot values into the given Snapshot thereby following the guidelines of PutsSnapshot. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more