pub struct OtlpMetricsConfig {
pub endpoint: String,
pub headers: BTreeMap<String, String>,
pub timeout: Duration,
pub interval: Duration,
pub max_request_bytes: usize,
pub max_response_bytes: usize,
}Expand description
Credentials and endpoint are deliberately omitted from Debug and errors.
Fields§
§endpoint: StringFull signal endpoint, e.g. https://collector.example/v1/metrics.
headers: BTreeMap<String, String>§timeout: Duration§interval: Duration§max_request_bytes: usize§max_response_bytes: usizeImplementations§
Source§impl OtlpMetricsConfig
impl OtlpMetricsConfig
Sourcepub fn validate(&self) -> MetricResult<()>
pub fn validate(&self) -> MetricResult<()>
§Errors
Returns a redacted error for invalid endpoints, headers, timeouts or size limits.
Trait Implementations§
Source§impl Clone for OtlpMetricsConfig
impl Clone for OtlpMetricsConfig
Source§fn clone(&self) -> OtlpMetricsConfig
fn clone(&self) -> OtlpMetricsConfig
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 moreAuto Trait Implementations§
impl Freeze for OtlpMetricsConfig
impl RefUnwindSafe for OtlpMetricsConfig
impl Send for OtlpMetricsConfig
impl Sync for OtlpMetricsConfig
impl Unpin for OtlpMetricsConfig
impl UnsafeUnpin for OtlpMetricsConfig
impl UnwindSafe for OtlpMetricsConfig
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