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ยง

source

type Socket: Debug + Send + Sync

๐Ÿ‘ŽDeprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.

A communication socket between Jaeger client and agent.

Required Methodsยง

source

fn create_socket<T: ToSocketAddrs>(&self, endpoint: T) -> Result<Self::Socket>

๐Ÿ‘ŽDeprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.

Create a new communication socket.

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,

๐Ÿ‘ŽDeprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.

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.
ยง

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>

๐Ÿ‘Ž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,

๐Ÿ‘ŽDeprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.
sourceยง

impl JaegerTraceRuntime for Tokio

Available on crate feature rt-tokio only.
ยง

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>

๐Ÿ‘Ž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,

๐Ÿ‘Ž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.
ยง

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>

๐Ÿ‘Ž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,

๐Ÿ‘ŽDeprecated since 0.21.0: Please migrate to opentelemetry-otlp exporter.

Implementorsยง