pub struct MetricsExportConfig {
pub endpoint: String,
pub interval: Duration,
pub service_name: String,
pub service_version: String,
pub headers: Vec<(String, String)>,
}Expand description
Where and how often to push metrics.
Fields§
§endpoint: StringThe full URL metrics are POSTed to, e.g. http://collector:4318/v1/metrics.
interval: DurationTime between exports.
service_name: Stringservice.name resource attribute.
service_version: Stringservice.version resource attribute.
headers: Vec<(String, String)>Extra request headers (OTEL_EXPORTER_OTLP_HEADERS), e.g. an API key.
Trait Implementations§
Source§impl Clone for MetricsExportConfig
impl Clone for MetricsExportConfig
Auto Trait Implementations§
impl Freeze for MetricsExportConfig
impl RefUnwindSafe for MetricsExportConfig
impl Send for MetricsExportConfig
impl Sync for MetricsExportConfig
impl Unpin for MetricsExportConfig
impl UnsafeUnpin for MetricsExportConfig
impl UnwindSafe for MetricsExportConfig
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