Trait opentelemetry_sdk::trace::TraceRuntime
source · [−]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);
}
Available on crate feature
trace
only.Expand description
Trace runtime is an extension to Runtime
. Currently it provides a channel that used
by BatchSpanProcessor
.
Required Associated Types
sourcetype Receiver: Stream<Item = BatchMessage> + Send
type Receiver: Stream<Item = BatchMessage> + Send
A future stream to receive the batch messages from channels.
Required Methods
sourcefn batch_message_channel(
&self,
capacity: usize
) -> (Self::Sender, Self::Receiver)
fn batch_message_channel(
&self,
capacity: usize
) -> (Self::Sender, Self::Receiver)
Return the sender and receiver used to send batch message between tasks.
Implementors
sourceimpl TraceRuntime for AsyncStd
Available on crate feature rt-async-std
only.
impl TraceRuntime for AsyncStd
Available on crate feature
rt-async-std
only.type Receiver = Receiver<BatchMessage>
type Sender = Sender<BatchMessage>
sourceimpl TraceRuntime for Tokio
Available on crate feature rt-tokio
only.
impl TraceRuntime for Tokio
Available on crate feature
rt-tokio
only.type Receiver = ReceiverStream<BatchMessage>
type Sender = Sender<BatchMessage>
sourceimpl TraceRuntime for TokioCurrentThread
Available on crate feature rt-tokio-current-thread
only.
impl TraceRuntime for TokioCurrentThread
Available on crate feature
rt-tokio-current-thread
only.