pub trait JaegerTraceRuntime: TraceRuntime + Debug {
type Socket: Debug + Send + Sync;
fn create_socket<T: ToSocketAddrs>(
&self,
host_port: T
) -> Result<Self::Socket>;
fn write_to_socket<'life0, 'life1, 'async_trait>(
&'life0 self,
socket: &'life1 Self::Socket,
payload: Vec<u8>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait;
}
Expand description
Jaeger Trace Runtime is an extension to TraceRuntime
.
Associated Types
Required methods
fn create_socket<T: ToSocketAddrs>(&self, host_port: T) -> Result<Self::Socket>
fn create_socket<T: ToSocketAddrs>(&self, host_port: T) -> Result<Self::Socket>
Create a new communication socket.
Implementations on Foreign Types
impl JaegerTraceRuntime for TokioCurrentThread
This is supported on crate feature rt-tokio-current-thread
only.
impl JaegerTraceRuntime for TokioCurrentThread
This is supported on crate feature
rt-tokio-current-thread
only.