pub struct InstrumentationConfig {
pub prometheus: bool,
pub prometheus_listen_addr: String,
pub max_open_connections: u64,
pub namespace: String,
}
Expand description
instrumentation configuration options
Fields§
§prometheus: bool
When true
, Prometheus metrics are served under /metrics on
PrometheusListenAddr.
prometheus_listen_addr: String
Address to listen for Prometheus collector(s) connections
max_open_connections: u64
Maximum number of simultaneous connections.
namespace: String
Instrumentation namespace
Trait Implementations§
Source§impl Clone for InstrumentationConfig
impl Clone for InstrumentationConfig
Source§fn clone(&self) -> InstrumentationConfig
fn clone(&self) -> InstrumentationConfig
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 InstrumentationConfig
impl Debug for InstrumentationConfig
Source§impl<'de> Deserialize<'de> for InstrumentationConfig
impl<'de> Deserialize<'de> for InstrumentationConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InstrumentationConfig
impl PartialEq for InstrumentationConfig
Source§impl Serialize for InstrumentationConfig
impl Serialize for InstrumentationConfig
impl Eq for InstrumentationConfig
impl StructuralPartialEq for InstrumentationConfig
Auto Trait Implementations§
impl Freeze for InstrumentationConfig
impl RefUnwindSafe for InstrumentationConfig
impl Send for InstrumentationConfig
impl Sync for InstrumentationConfig
impl Unpin for InstrumentationConfig
impl UnwindSafe for InstrumentationConfig
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