[][src]Struct opentelemetry_application_insights::Exporter

pub struct Exporter<C> { /* fields omitted */ }

Application Insights span exporter

Implementations

impl<C> Exporter<C>[src]

pub fn new(instrumentation_key: String, client: C) -> Self[src]

Create a new exporter.

pub fn with_endpoint(
    self,
    endpoint: &str
) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>
[src]

Set endpoint used to ingest telemetry. This should consist of scheme and authrity. The exporter will call /v2/track on the specified endpoint.

Default: https://dc.services.visualstudio.com

pub fn with_sample_rate(self, sample_rate: f64) -> Self[src]

Set sample rate, which is passed through to Application Insights. It should be a value between 0 and 1 and match the rate given to the sampler.

Default: 1.0

Trait Implementations

impl<C: Debug> Debug for Exporter<C>[src]

impl<C> SpanExporter for Exporter<C> where
    C: HttpClient
[src]

pub fn export<'life0, 'async_trait>(
    &'life0 mut self,
    batch: Vec<SpanData>
) -> Pin<Box<dyn Future<Output = ExportResult> + Send + 'async_trait>> where
    'life0: 'async_trait,
    Self: 'async_trait, 
[src]

Export spans to Application Insights

Auto Trait Implementations

impl<C> RefUnwindSafe for Exporter<C> where
    C: RefUnwindSafe

impl<C> Send for Exporter<C> where
    C: Send

impl<C> Sync for Exporter<C> where
    C: Sync

impl<C> Unpin for Exporter<C> where
    C: Unpin

impl<C> UnwindSafe for Exporter<C> where
    C: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FutureExt for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]