Struct zipkin::BinaryAnnotation
[−]
[src]
pub struct BinaryAnnotation { /* fields omitted */ }
A BinaryAnnotation
represents extra information about a Span
.
It consists of a key/value pair of information, and an optional Endpoint
identifying the service in which the BinaryAnnotation
was generated.
Zipkin defines a number of "standard" keys:
lc
- "Local Component": Used to identify local spans - those that do not involve a remote request to another service.
Arbitrary user-defined keys can also be used.
Methods
impl BinaryAnnotation
[src]
fn builder() -> Builder
[src]
Returns a builder used to construct a BinaryAnnotation
.
fn key(&self) -> &str
[src]
Returns the binary annotation's key.
fn value(&self) -> &str
[src]
Returns the binary annotation's value.
fn endpoint(&self) -> Option<&Endpoint>
[src]
Returns the endpoint on which the binary annotation was generated.
Trait Implementations
impl Debug for BinaryAnnotation
[src]
impl Clone for BinaryAnnotation
[src]
fn clone(&self) -> BinaryAnnotation
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more