Trait opentelemetry::sdk::trace::TraceRuntime [−][src]
pub trait TraceRuntime: Runtime { type Receiver: Stream<Item = BatchMessage> + Send; type Sender: TrySend + Debug; fn batch_message_channel(
&self,
capacity: usize
) -> (Self::Sender, Self::Receiver); }
This is supported on crate feature
trace
only.Expand description
Trace runtime is an extension to Runtime
. Currently it provides a channel that used
by BatchSpanProcessor
.
Associated Types
type Receiver: Stream<Item = BatchMessage> + Send
type Receiver: Stream<Item = BatchMessage> + Send
A future stream to receive the batch messages from channels.
Required methods
Implementors
impl TraceRuntime for TokioCurrentThread
This is supported on crate feature
rt-tokio-current-thread
only.