Skip to main content

RoutingMetadata

Trait RoutingMetadata 

Source
pub trait RoutingMetadata:
    Debug
    + Send
    + Sync {
    // Required methods
    fn group_key(&self) -> String;
    fn encode(&self) -> String;
}
Expand description

Caller-defined routing attached to a span, inherited by children, and read by the exporter to route the resulting FinishedSpan.

Required Methods§

Source

fn group_key(&self) -> String

Batching key: spans sharing it are exported together. Must differ whenever encode would.

Source

fn encode(&self) -> String

The value the exporter transmits for this routing.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§