pub struct MetricsMiddlewareBuilder { /* private fields */ }
Expand description
Builder for MetricsMiddleware
Implementations§
Source§impl MetricsMiddlewareBuilder
impl MetricsMiddlewareBuilder
Sourcepub fn new() -> Self
pub fn new() -> Self
Create a new MetricsMiddlewareBuilder
Sourcepub fn http_request_method_label<T: Into<String>>(
&mut self,
label: T,
) -> &mut Self
pub fn http_request_method_label<T: Into<String>>( &mut self, label: T, ) -> &mut Self
Rename the http.request.method
label.
Sourcepub fn server_address_label<T: Into<String>>(&mut self, label: T) -> &mut Self
pub fn server_address_label<T: Into<String>>(&mut self, label: T) -> &mut Self
Rename the server.address
label.
Sourcepub fn server_port_label<T: Into<String>>(&mut self, label: T) -> &mut Self
pub fn server_port_label<T: Into<String>>(&mut self, label: T) -> &mut Self
Rename the server.port
label.
Sourcepub fn error_type_label<T: Into<String>>(&mut self, label: T) -> &mut Self
pub fn error_type_label<T: Into<String>>(&mut self, label: T) -> &mut Self
Rename the error.type
label.
Sourcepub fn http_response_status_label<T: Into<String>>(
&mut self,
label: T,
) -> &mut Self
pub fn http_response_status_label<T: Into<String>>( &mut self, label: T, ) -> &mut Self
Rename the http.response.status
label.
Sourcepub fn network_protocol_name_label<T: Into<String>>(
&mut self,
label: T,
) -> &mut Self
pub fn network_protocol_name_label<T: Into<String>>( &mut self, label: T, ) -> &mut Self
Rename the network.protocol.name
label.
Sourcepub fn network_protocol_version_label<T: Into<String>>(
&mut self,
label: T,
) -> &mut Self
pub fn network_protocol_version_label<T: Into<String>>( &mut self, label: T, ) -> &mut Self
Rename the network.protocol.version
label.
Sourcepub fn url_scheme_label<T: Into<String>>(&mut self, label: T) -> &mut Self
pub fn url_scheme_label<T: Into<String>>(&mut self, label: T) -> &mut Self
Rename the url.scheme
label.
Sourcepub fn build(&self) -> MetricsMiddleware
pub fn build(&self) -> MetricsMiddleware
Builds a MetricsMiddleware
Trait Implementations§
Source§impl Clone for MetricsMiddlewareBuilder
impl Clone for MetricsMiddlewareBuilder
Source§fn clone(&self) -> MetricsMiddlewareBuilder
fn clone(&self) -> MetricsMiddlewareBuilder
Returns a copy 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 MetricsMiddlewareBuilder
impl Debug for MetricsMiddlewareBuilder
Auto Trait Implementations§
impl Freeze for MetricsMiddlewareBuilder
impl RefUnwindSafe for MetricsMiddlewareBuilder
impl Send for MetricsMiddlewareBuilder
impl Sync for MetricsMiddlewareBuilder
impl Unpin for MetricsMiddlewareBuilder
impl UnwindSafe for MetricsMiddlewareBuilder
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