Skip to main content

span_from_nats_message

Function span_from_nats_message 

Source
pub fn span_from_nats_message(message: &Message) -> Span
Expand description

Extract the current span from a NATS message.

The parent span is set when possible. (Remember to set it when sending the NATS message.) The span is not automatically entered, so you will either have to instrument a function manually or enter it yourself.