[][src]Enum zipkin::span::Kind

pub enum Kind {
    Client,
    Server,
    Producer,
    Consumer,
    // some variants omitted
}

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

impl Clone for Kind[src]

impl Copy for Kind[src]

impl Debug for Kind[src]

impl<'de> Deserialize<'de> for Kind[src]

impl Serialize for Kind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,