[−][src]Struct opentracingrust_zipkin::HttpCollectorOpts
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]
S: Into<&'a str>,
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,