Struct appinsights::TelemetryConfig[][src]

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

Configuration data used to initialize a new TelemetryClient with.

Examples

Creating a telemetry client configuration with default settings

let config = TelemetryConfig::new("<instrumentation key>".to_string());

Creating a telemetry client configuration with custom settings

let config = TelemetryConfig::builder()
    .i_key("<instrumentation key>")
    .interval(Duration::from_secs(5))
    .build();

Implementations

Creates a new telemetry configuration with specified instrumentation key and default values.

Creates a new telemetry configuration builder with default parameters.

Returns an instrumentation key for the client.

Returns endpoint URL where data will be sent.

Returns maximum time to wait until send a batch of telemetry.

Trait Implementations

Formats the value using the given formatter. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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 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.