mz_adapter::telemetry

Trait SegmentClientExt

Source
pub trait SegmentClientExt {
    // Required method
    fn environment_track<S>(
        &self,
        environment_id: &EnvironmentId,
        event: S,
        properties: Value,
        details: EventDetails<'_>,
    )
       where S: Into<String>;
}
Expand description

Extension trait for mz_segment::Client.

Required Methods§

Source

fn environment_track<S>( &self, environment_id: &EnvironmentId, event: S, properties: Value, details: EventDetails<'_>, )
where S: Into<String>,

Tracks an event associated with an environment.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl SegmentClientExt for Client

Source§

fn environment_track<S>( &self, environment_id: &EnvironmentId, event: S, properties: Value, _: EventDetails<'_>, )
where S: Into<String>,

Tracks an event associated with an environment.

Various metadata about the environment is automatically attached using canonical field names.

§Panics

Panics if properties is not a serde_json::Value::Object.

Implementors§