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. Annotations are attached to a Span.

Zipkin defines a number of "standard" event values:

  • cs - "Client Sent": Generated by a client when it sends a request to a remote service.
  • sr - "Server Receive": 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]

[src]

Returns a new builder used to construct an Annotation.

[src]

Returns the time at which the annotated event occurred.

[src]

Returns the value of the annotation.

[src]

Returns the endpoint on which the annotated event occurred.

Trait Implementations

impl Debug for Annotation
[src]

[src]

Formats the value using the given formatter.

impl Clone for Annotation
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more