Struct TraceServiceClient
pub struct TraceServiceClient<T> { /* private fields */ }grpc and http and opentelemetry and std only.Expand description
Service that can be used to push spans between one Application instrumented with OpenTelemetry and a collector, or between a collector and a central collector (in this case spans are sent/received to/from multiple Applications).
Implementations§
§impl<T> TraceServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + Sync + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
impl<T> TraceServiceClient<T>where
T: GrpcService<Body>,
<T as GrpcService<Body>>::Error: Into<Box<dyn Error + Sync + Send>>,
<T as GrpcService<Body>>::ResponseBody: Body<Data = Bytes> + Send + Sync + 'static,
<<T as GrpcService<Body>>::ResponseBody as Body>::Error: Into<Box<dyn Error + Sync + Send>> + Send,
pub fn new(inner: T, origin: Uri) -> TraceServiceClient<T>
pub fn into_inner(self) -> Grpc<T>
pub fn into_transport(self) -> T
pub fn with_send_compressed(
self,
encoding: CompressionEncoding,
) -> TraceServiceClient<T>
pub fn with_send_compressed( self, encoding: CompressionEncoding, ) -> TraceServiceClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
pub fn set_send_compressed(
&mut self,
encoding: CompressionEncoding,
) -> &mut TraceServiceClient<T>
pub fn set_send_compressed( &mut self, encoding: CompressionEncoding, ) -> &mut TraceServiceClient<T>
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
pub fn with_accept_compressed(
self,
encoding: CompressionEncoding,
) -> TraceServiceClient<T>
pub fn with_accept_compressed( self, encoding: CompressionEncoding, ) -> TraceServiceClient<T>
Enable decompressing responses.
pub fn set_accept_compressed(
&mut self,
encoding: CompressionEncoding,
) -> &mut TraceServiceClient<T>
pub fn set_accept_compressed( &mut self, encoding: CompressionEncoding, ) -> &mut TraceServiceClient<T>
Enable decompressing responses.
pub fn with_max_decoding_message_size(
self,
limit: usize,
) -> TraceServiceClient<T>
pub fn with_max_decoding_message_size( self, limit: usize, ) -> TraceServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
pub fn set_max_decoding_message_size(
&mut self,
limit: usize,
) -> &mut TraceServiceClient<T>
pub fn set_max_decoding_message_size( &mut self, limit: usize, ) -> &mut TraceServiceClient<T>
Limits the maximum size of a decoded message.
Default: 4MB
pub fn with_max_encoding_message_size(
self,
limit: usize,
) -> TraceServiceClient<T>
pub fn with_max_encoding_message_size( self, limit: usize, ) -> TraceServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
pub fn set_max_encoding_message_size(
&mut self,
limit: usize,
) -> &mut TraceServiceClient<T>
pub fn set_max_encoding_message_size( &mut self, limit: usize, ) -> &mut TraceServiceClient<T>
Limits the maximum size of an encoded message.
Default: usize::MAX
pub async fn export( &self, request: impl IntoRequest<ExportTraceServiceRequest>, ) -> Result<Response<ExportTraceServiceResponse>, Status>
Trait Implementations§
§impl<T> Clone for TraceServiceClient<T>where
T: Clone,
impl<T> Clone for TraceServiceClient<T>where
T: Clone,
§fn clone(&self) -> TraceServiceClient<T>
fn clone(&self) -> TraceServiceClient<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> Freeze for TraceServiceClient<T>
impl<T> RefUnwindSafe for TraceServiceClient<T>where
Grpc<T>: RefUnwindSafe,
impl<T> Send for TraceServiceClient<T>
impl<T> Sync for TraceServiceClient<T>
impl<T> Unpin for TraceServiceClient<T>
impl<T> UnsafeUnpin for TraceServiceClient<T>where
Grpc<T>: UnsafeUnpin,
impl<T> UnwindSafe for TraceServiceClient<T>where
Grpc<T>: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more