Skip to main content

TelemetryExt

Trait TelemetryExt 

Source
pub trait TelemetryExt {
    // Required method
    fn try_telemetry(&self) -> Option<&OpenedTelemetry>;

    // Provided methods
    fn telemetry(&self) -> &OpenedTelemetry { ... }
    fn consent(&self) -> &ConsentStore { ... }
    fn usage_reporter(&self) -> &DynamicReporter { ... }
}
Expand description

Convenience accessors for telemetry services attached to the app’s app_state registry.

Required Methods§

Provided Methods§

Source

fn telemetry(&self) -> &OpenedTelemetry

The full bundle. Panics if TeksiloAppBuilder::telemetry(...) was not called.

Source

fn consent(&self) -> &ConsentStore

The consent store. Panics if no telemetry bundle was registered.

Source

fn usage_reporter(&self) -> &DynamicReporter

The active dynamic reporter (forwards to the adapter matching the current mode). Panics if no telemetry bundle was registered.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl<'a> TelemetryExt for BuildContext<'a>

Source§

impl<'a> TelemetryExt for EventContext<'a>

Implementors§