pub struct LabelsConfig { /* private fields */ }Expand description
Configuration for the labels used in metrics
Implementations§
Source§impl LabelsConfig
impl LabelsConfig
Sourcepub fn http_request_method<T: Into<String>>(self, name: T) -> Self
pub fn http_request_method<T: Into<String>>(self, name: T) -> Self
set http method label
Sourcepub fn http_route<T: Into<String>>(self, name: T) -> Self
pub fn http_route<T: Into<String>>(self, name: T) -> Self
set http route label
Sourcepub fn http_response_status_code<T: Into<String>>(self, name: T) -> Self
pub fn http_response_status_code<T: Into<String>>(self, name: T) -> Self
set http status label
Sourcepub fn network_protocol_name<T: Into<String>>(self, name: T) -> Self
pub fn network_protocol_name<T: Into<String>>(self, name: T) -> Self
set network protocol name label
Sourcepub fn network_protocol_version<T: Into<String>>(self, name: T) -> Self
pub fn network_protocol_version<T: Into<String>>(self, name: T) -> Self
set network protocol version label
Sourcepub fn url_scheme<T: Into<String>>(self, name: T) -> Self
pub fn url_scheme<T: Into<String>>(self, name: T) -> Self
set url scheme label
Trait Implementations§
Source§impl Clone for LabelsConfig
impl Clone for LabelsConfig
Source§fn clone(&self) -> LabelsConfig
fn clone(&self) -> LabelsConfig
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 LabelsConfig
impl Debug for LabelsConfig
Auto Trait Implementations§
impl Freeze for LabelsConfig
impl RefUnwindSafe for LabelsConfig
impl Send for LabelsConfig
impl Sync for LabelsConfig
impl Unpin for LabelsConfig
impl UnwindSafe for LabelsConfig
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