[−][src]Struct rustracing_jaeger::reporter::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
Auto Trait Implementations
impl Send for JaegerBinaryReporter
impl Sync for JaegerBinaryReporter
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto 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<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,