[][src]Struct holochain_tracing::Reporter

pub struct Reporter(_);

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

Methods

impl JaegerCompactReporter[src]

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

Makes a new JaegerCompactReporter 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<(), Error>[src]

Sets the address of the report destination agent to addr.

The default address is 127.0.0.1:6831.

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

Adds tag to this service.

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

Reports spans.

Errors

If it fails to encode spans to the thrift compact 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 JaegerCompactReporter[src]

Auto Trait Implementations

Blanket Implementations

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 = !

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<T> Borrow<T> for T where
    T: ?Sized
[src]

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

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