pub struct ActixWebMetricsConfig { /* private fields */ }Expand description
Configuration for the collected metrics
Stores individual metric configuration objects
Implementations§
Source§impl ActixWebMetricsConfig
impl ActixWebMetricsConfig
Sourcepub fn labels(self, labels: LabelsConfig) -> Self
pub fn labels(self, labels: LabelsConfig) -> Self
Set the labels collected for the metrics
Sourcepub fn http_server_request_duration_name<T: Into<String>>(self, name: T) -> Self
pub fn http_server_request_duration_name<T: Into<String>>(self, name: T) -> Self
Set name for http.server.request.duration metric
Sourcepub fn http_server_request_body_size_name<T: Into<String>>(
self,
name: T,
) -> Self
pub fn http_server_request_body_size_name<T: Into<String>>( self, name: T, ) -> Self
Set name for http.server.request.body.size metric
Sourcepub fn http_server_response_body_size_name<T: Into<String>>(
self,
name: T,
) -> Self
pub fn http_server_response_body_size_name<T: Into<String>>( self, name: T, ) -> Self
Set name for http.server.response.body.size metric
Sourcepub fn http_server_active_requests_name<T: Into<String>>(self, name: T) -> Self
pub fn http_server_active_requests_name<T: Into<String>>(self, name: T) -> Self
Set name for http.server.active_requests metric
Trait Implementations§
Source§impl Clone for ActixWebMetricsConfig
impl Clone for ActixWebMetricsConfig
Source§fn clone(&self) -> ActixWebMetricsConfig
fn clone(&self) -> ActixWebMetricsConfig
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 Debug for ActixWebMetricsConfig
impl Debug for ActixWebMetricsConfig
Auto Trait Implementations§
impl Freeze for ActixWebMetricsConfig
impl RefUnwindSafe for ActixWebMetricsConfig
impl Send for ActixWebMetricsConfig
impl Sync for ActixWebMetricsConfig
impl Unpin for ActixWebMetricsConfig
impl UnwindSafe for ActixWebMetricsConfig
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