[][src]Struct rustracing_jaeger::reporter::JaegerBinaryReporter

pub struct JaegerBinaryReporter(_);

Reporter for the agent which accepts jaeger.thrift over binary thrift protocol.

Methods

impl JaegerBinaryReporter[src]

pub fn new(service_name: &str) -> Result<Self>[src]

Makes a new JaegerBinaryReporter instance.

Errors

If the UDP socket used to report spans can not be bound to 0.0.0.0:0, it will return an error which has the kind ErrorKind::Other.

pub fn set_agent_addr(&mut self, addr: SocketAddr) -> Result<()>[src]

Sets the address of the report destination agent to addr.

The default address is 127.0.0.1:6832.

pub fn add_service_tag(&mut self, tag: Tag)[src]

Adds tag to this service.

pub fn report(&self, spans: &[FinishedSpan]) -> Result<()>[src]

Reports spans.

Errors

If it fails to encode spans to the thrift binary format (i.e., a bug of this crate), this method will return an error which has the kind ErrorKind::InvalidInput.

If it fails to send the encoded binary to the jaeger agent via UDP, this method will return an error which has the kind ErrorKind::Other.

Trait Implementations

impl Debug for JaegerBinaryReporter[src]

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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<T> Any for T where
    T: 'static + ?Sized
[src]