Struct zipkin::Annotation
[−]
[src]
pub struct Annotation { /* fields omitted */ }
An Annotation
represents an occurence of an event at some time.
It consists of a timestamp, a string description of the event, and an
optional Endpoint
identifying the service in which the event ocurred.
Annotation
s are attached to a Span
.
Zipkin defines a number of "standard" event values:
cs
- "Client Start": Generated by a client when it sends a request to a remote service.sr
- "Server Recieve": Generated by a server when it has received a request from a client.ss
- "Server Sent": Generated by a server when it has finished processing a request and has sent the request back to the client.cr
- "Client Receive": Generated by a client when it has received the server's response to a request.
Arbitrary user-defined values can also be used.
Methods
impl Annotation
[src]
fn builder() -> Builder
[src]
Returns a new builder used to construct an Annotation
.
fn timestamp(&self) -> SystemTime
[src]
Returns the time at which the annotated event occurred.
fn value(&self) -> &str
[src]
Returns the value of the annotation.
fn endpoint(&self) -> Option<&Endpoint>
[src]
Returns the endpoint on which the annotated event occurred.