Struct opentelemetry_otlp::proto::collector::metrics::v1::metrics_service_client::MetricsServiceClient [−][src]
pub struct MetricsServiceClient<T> { /* fields omitted */ }
Expand description
Service that can be used to push metrics between one Application instrumented with OpenTelemetry and a collector, or between a collector and a central collector.
Implementations
impl<T> MetricsServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
impl<T> MetricsServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]pub async fn export(
&mut self,
request: impl IntoRequest<ExportMetricsServiceRequest>
) -> Result<Response<ExportMetricsServiceResponse>, Status>
[src]
pub async fn export(
&mut self,
request: impl IntoRequest<ExportMetricsServiceRequest>
) -> Result<Response<ExportMetricsServiceResponse>, Status>
[src]For performance reasons, it is recommended to keep this RPC alive for the entire life of the application.
Trait Implementations
Auto Trait Implementations
impl<T> !RefUnwindSafe for MetricsServiceClient<T>
impl<T> Send for MetricsServiceClient<T> where
T: Send,
impl<T> Sync for MetricsServiceClient<T> where
T: Sync,
impl<T> Unpin for MetricsServiceClient<T> where
T: Unpin,
impl<T> !UnwindSafe for MetricsServiceClient<T>
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Wrap the input message T
in a tonic::Request
type Output = T
type Output = T
Should always be Self
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more