Enum zipkin::span::Kind

source ·
pub enum Kind {
    Client,
    Server,
    Producer,
    Consumer,
    // some variants omitted
}
Expand description

The “kind” of a span.

This has an impact on the relationship between the span’s timestamp, duration, and local endpoint.

Variants§

§

Client

The client side of an RPC.

  • Timestamp - The moment a request was sent (formerly “cs”)
  • Duration - When present, indicates when a response was received (formerly “cr”)
  • Remote Endpoint - Represents the server.
§

Server

The server side of an RPC.

  • Timestamp - The moment a request was received (formerly “sr”)
  • Duration - When present, indicates when a response was received (formerly “ss”)
  • Remote Endpoint - Represents the client.
§

Producer

A message sent to a message broker.

  • Timestamp - The moment a message was sent to a destination (formerly “ms”)
  • Duration - When present, represents the delay sending the message, such as batching.
  • Remote Endpoint - Represents the broker.
§

Consumer

A message received from a message broker.

  • Timestamp - The moment a message was received from an origin (formerly “mr”)
  • Duration - When present, represents the delay consuming the message, such as from a backlog.
  • Remote Endpoint - Represents the broker.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.