[−][src]Struct holochain_tracing::reporter::JaegerCompactReporter
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]
&self,
spans: &[FinishedSpan<SpanContextState>]
) -> Result<(), Error>
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
Auto Trait Implementations
impl RefUnwindSafe for JaegerCompactReporter
impl Send for JaegerCompactReporter
impl Sync for JaegerCompactReporter
impl Unpin for JaegerCompactReporter
impl UnwindSafe for JaegerCompactReporter
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>,