Trait opentelemetry_jaeger::JaegerTraceRuntime
source ยท pub trait JaegerTraceRuntime: RuntimeChannel + Debug {
type Socket: Debug + Send + Sync;
// Required methods
fn create_socket<T: ToSocketAddrs>(
&self,
endpoint: 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 Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
}
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
Expand description
Jaeger Trace Runtime is an extension to RuntimeChannel
.
Deprecation Notice: Ingestion of OTLP is now supported in Jaeger please check crates.io for more details.
Required Associated Typesยง
Required Methodsยง
sourcefn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
fn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
Create a new communication socket.
sourcefn 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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Send payload over the socket.
Object Safetyยง
This trait is not object safe.
Implementations on Foreign Typesยง
sourceยงimpl JaegerTraceRuntime for AsyncStd
Available on crate feature rt-async-std
only.
impl JaegerTraceRuntime for AsyncStd
Available on crate feature
rt-async-std
only.ยงtype Socket = UdpSocket
type Socket = UdpSocket
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยงfn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
fn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยง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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยงimpl JaegerTraceRuntime for Tokio
Available on crate feature rt-tokio
only.
impl JaegerTraceRuntime for Tokio
Available on crate feature
rt-tokio
only.ยงtype Socket = UdpSocket
type Socket = UdpSocket
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยงfn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
fn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยง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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยงimpl JaegerTraceRuntime for TokioCurrentThread
Available on crate feature rt-tokio-current-thread
only.
impl JaegerTraceRuntime for TokioCurrentThread
Available on crate feature
rt-tokio-current-thread
only.ยงtype Socket = UdpSocket
type Socket = UdpSocket
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยงfn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
fn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยง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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
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
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
๐Deprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.