pub struct ActixWebMetrics { /* private fields */ }
Expand description
By default two metrics are tracked:
-
http_requests_total
(labels: endpoint, method, status): the total number of HTTP requests handled by the actixHttpServer
. -
http_requests_duration_seconds
(labels: endpoint, method, status): the request duration for all HTTP requests handled by the actixHttpServer
.
Trait Implementations§
Source§impl Clone for ActixWebMetrics
impl Clone for ActixWebMetrics
Source§fn clone(&self) -> ActixWebMetrics
fn clone(&self) -> ActixWebMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<S, B> Transform<S, ServiceRequest> for ActixWebMetrics
impl<S, B> Transform<S, ServiceRequest> for ActixWebMetrics
Source§type Response = ServiceResponse<StreamLog<B>>
type Response = ServiceResponse<StreamLog<B>>
Responses produced by the service.
Source§type Future = Ready<Result<<ActixWebMetrics as Transform<S, ServiceRequest>>::Transform, <ActixWebMetrics as Transform<S, ServiceRequest>>::InitError>>
type Future = Ready<Result<<ActixWebMetrics as Transform<S, ServiceRequest>>::Transform, <ActixWebMetrics as Transform<S, ServiceRequest>>::InitError>>
The future response value.
Source§fn new_transform(&self, service: S) -> Self::Future
fn new_transform(&self, service: S) -> Self::Future
Creates and returns a new Transform component, asynchronously
Auto Trait Implementations§
impl Freeze for ActixWebMetrics
impl RefUnwindSafe for ActixWebMetrics
impl Send for ActixWebMetrics
impl Sync for ActixWebMetrics
impl Unpin for ActixWebMetrics
impl UnwindSafe for ActixWebMetrics
Blanket Implementations§
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
Mutably borrows from an owned value. Read more