[][src]Struct opentracingrust_zipkin::HttpCollectorOpts

pub struct HttpCollectorOpts<'a> { /* fields omitted */ }

HTTP collector options.

Methods

impl<'a> HttpCollectorOpts<'a>[src]

pub fn new<S>(url: S, endpoint: Endpoint) -> HttpCollectorOpts<'a> where
    S: Into<&'a str>, 
[src]

Default HTTP collector options.

The target URL to post spans to and the Zipkin endpoint descriptor are required. The target URL must NOT include the exact API endpoint and /api/v1/spans will be added.

pub fn flush_count(self, count: usize) -> HttpCollectorOpts<'a>[src]

Set the number of buffered spans that should trigger a flush.

A flush will be performed by the next call to HttpCollector::lazy_flush after the number of spans buffered is above this count.

pub fn flush_timeout(self, timeout: Duration) -> HttpCollectorOpts<'a>[src]

Set the muximum delay between span flushes.

A fluss will be performed by the next call to HttpCollector::lazy_flush if there are spans in the buffer and the last flush is older then the timeout.

pub fn headers(self, headers: HeaderMap) -> HttpCollectorOpts<'a>[src]

Set custom headers to attach to POST requests.

Auto Trait Implementations

impl<'a> RefUnwindSafe for HttpCollectorOpts<'a>

impl<'a> Send for HttpCollectorOpts<'a>

impl<'a> Sync for HttpCollectorOpts<'a>

impl<'a> Unpin for HttpCollectorOpts<'a>

impl<'a> UnwindSafe for HttpCollectorOpts<'a>

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, U> Into<U> for T where
    U: From<T>, 
[src]

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