[−][src]Struct actix_web_opentelemetry::RequestMetrics
Request metrics tracking
Methods
impl<M, R, F> RequestMetrics<M, R, F> where
M: Meter,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter,
F: Fn(&ServiceRequest) -> bool + Send + Clone,
[src]
M: Meter,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter,
F: Fn(&ServiceRequest) -> bool + Send + Clone,
pub fn new(sdk: M, route_formatter: R, should_render_metrics: Option<F>) -> Self
[src]
Create new RequestMetrics
Trait Implementations
impl<M, R, F> Clone for RequestMetrics<M, R, F> where
M: Meter,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter + Clone,
F: Fn(&ServiceRequest) -> bool + Send + Clone,
[src]
M: Meter,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter + Clone,
F: Fn(&ServiceRequest) -> bool + Send + Clone,
fn clone(&self) -> Self
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<F> Default for RequestMetrics<NoopMeter, UuidWildcardFormatter, F> where
F: Fn(&ServiceRequest) -> bool + Send + Clone,
[src]
F: Fn(&ServiceRequest) -> bool + Send + Clone,
impl<M: Debug, R: Debug, F: Debug> Debug for RequestMetrics<M, R, F> where
M: Meter,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter,
F: Fn(&ServiceRequest) -> bool + Send + Clone,
M::I64Counter: Debug,
M::F64Measure: Debug,
[src]
M: Meter,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter,
F: Fn(&ServiceRequest) -> bool + Send + Clone,
M::I64Counter: Debug,
M::F64Measure: Debug,
impl<S, B, M, R, F> Transform<S> for RequestMetrics<M, R, F> where
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
B: 'static,
M: Meter + 'static,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter + Clone + 'static,
F: Fn(&ServiceRequest) -> bool + Send + Clone + 'static,
[src]
S: Service<Request = ServiceRequest, Response = ServiceResponse<B>, Error = Error>,
S::Future: 'static,
B: 'static,
M: Meter + 'static,
M::I64Counter: Clone,
M::F64Measure: Clone,
R: RouteFormatter + Clone + 'static,
F: Fn(&ServiceRequest) -> bool + Send + Clone + 'static,
type Request = ServiceRequest
Requests handled by the service.
type Response = ServiceResponse<B>
Responses given by the service.
type Error = Error
Errors produced by the service.
type Transform = RequestMetricsMiddleware<S, M, R, F>
The TransformService
value created by this factory
type InitError = ()
Errors produced while building a service.
type Future = FutureResult<Self::Transform, Self::InitError>
The future response value.
fn new_transform(&self, service: S) -> Self::Future
[src]
fn map_init_err<F, E>(self, f: F) -> TransformMapInitErr<Self, S, F, E> where
F: Fn(Self::InitError) -> E,
F: Fn(Self::InitError) -> E,
fn from_err<E>(self) -> TransformFromErr<Self, S, E> where
E: From<Self::InitError>,
E: From<Self::InitError>,
Auto Trait Implementations
impl<M, R, F> Send for RequestMetrics<M, R, F> where
M: Send + Sync,
R: Send,
<M as Meter>::F64Measure: Send,
<M as Meter>::I64Counter: Send,
M: Send + Sync,
R: Send,
<M as Meter>::F64Measure: Send,
<M as Meter>::I64Counter: Send,
impl<M, R, F> Sync for RequestMetrics<M, R, F> where
F: Sync,
M: Send + Sync,
R: Sync,
<M as Meter>::F64Measure: Sync,
<M as Meter>::I64Counter: Sync,
F: Sync,
M: Send + Sync,
R: Sync,
<M as Meter>::F64Measure: Sync,
<M as Meter>::I64Counter: Sync,
impl<M, R, F> Unpin for RequestMetrics<M, R, F> where
F: Unpin,
R: Unpin,
<M as Meter>::F64Measure: Unpin,
<M as Meter>::I64Counter: Unpin,
F: Unpin,
R: Unpin,
<M as Meter>::F64Measure: Unpin,
<M as Meter>::I64Counter: Unpin,
impl<M, R, F> UnwindSafe for RequestMetrics<M, R, F> where
F: UnwindSafe,
M: RefUnwindSafe,
R: UnwindSafe,
<M as Meter>::F64Measure: UnwindSafe,
<M as Meter>::I64Counter: UnwindSafe,
F: UnwindSafe,
M: RefUnwindSafe,
R: UnwindSafe,
<M as Meter>::F64Measure: UnwindSafe,
<M as Meter>::I64Counter: UnwindSafe,
impl<M, R, F> RefUnwindSafe for RequestMetrics<M, R, F> where
F: RefUnwindSafe,
M: RefUnwindSafe,
R: RefUnwindSafe,
<M as Meter>::F64Measure: RefUnwindSafe,
<M as Meter>::I64Counter: RefUnwindSafe,
F: RefUnwindSafe,
M: RefUnwindSafe,
R: RefUnwindSafe,
<M as Meter>::F64Measure: RefUnwindSafe,
<M as Meter>::I64Counter: RefUnwindSafe,
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T, S> IntoTransform<T, S> for T where
T: Transform<S>,
T: Transform<S>,
fn into_transform(self) -> T
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,