pub struct PrometheusExporterOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> PrometheusExporterOptionsBuilder<S>
impl<S: State> PrometheusExporterOptionsBuilder<S>
Sourcepub fn build(self) -> PrometheusExporterOptionswhere
S: IsComplete,
pub fn build(self) -> PrometheusExporterOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn socket_addr(
self,
value: SocketAddr,
) -> PrometheusExporterOptionsBuilder<SetSocketAddr<S>>where
S::SocketAddr: IsUnset,
pub fn socket_addr(
self,
value: SocketAddr,
) -> PrometheusExporterOptionsBuilder<SetSocketAddr<S>>where
S::SocketAddr: IsUnset,
Required.
The address the Prometheus exporter HTTP server will bind to.
Sourcepub fn counters_total_suffix(
self,
value: bool,
) -> PrometheusExporterOptionsBuilder<SetCountersTotalSuffix<S>>where
S::CountersTotalSuffix: IsUnset,
pub fn counters_total_suffix(
self,
value: bool,
) -> PrometheusExporterOptionsBuilder<SetCountersTotalSuffix<S>>where
S::CountersTotalSuffix: IsUnset,
Sourcepub fn maybe_counters_total_suffix(
self,
value: Option<bool>,
) -> PrometheusExporterOptionsBuilder<SetCountersTotalSuffix<S>>where
S::CountersTotalSuffix: IsUnset,
pub fn maybe_counters_total_suffix(
self,
value: Option<bool>,
) -> PrometheusExporterOptionsBuilder<SetCountersTotalSuffix<S>>where
S::CountersTotalSuffix: IsUnset,
Sourcepub fn unit_suffix(
self,
value: bool,
) -> PrometheusExporterOptionsBuilder<SetUnitSuffix<S>>where
S::UnitSuffix: IsUnset,
pub fn unit_suffix(
self,
value: bool,
) -> PrometheusExporterOptionsBuilder<SetUnitSuffix<S>>where
S::UnitSuffix: IsUnset,
Sourcepub fn maybe_unit_suffix(
self,
value: Option<bool>,
) -> PrometheusExporterOptionsBuilder<SetUnitSuffix<S>>where
S::UnitSuffix: IsUnset,
pub fn maybe_unit_suffix(
self,
value: Option<bool>,
) -> PrometheusExporterOptionsBuilder<SetUnitSuffix<S>>where
S::UnitSuffix: IsUnset,
Sourcepub fn use_seconds_for_durations(
self,
value: bool,
) -> PrometheusExporterOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
pub fn use_seconds_for_durations(
self,
value: bool,
) -> PrometheusExporterOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
Sourcepub fn maybe_use_seconds_for_durations(
self,
value: Option<bool>,
) -> PrometheusExporterOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
pub fn maybe_use_seconds_for_durations(
self,
value: Option<bool>,
) -> PrometheusExporterOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
Sourcepub fn histogram_bucket_overrides(
self,
value: HistogramBucketOverrides,
) -> PrometheusExporterOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
pub fn histogram_bucket_overrides(
self,
value: HistogramBucketOverrides,
) -> PrometheusExporterOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
Sourcepub fn maybe_histogram_bucket_overrides(
self,
value: Option<HistogramBucketOverrides>,
) -> PrometheusExporterOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
pub fn maybe_histogram_bucket_overrides(
self,
value: Option<HistogramBucketOverrides>,
) -> PrometheusExporterOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for PrometheusExporterOptionsBuilder<S>
impl<S> RefUnwindSafe for PrometheusExporterOptionsBuilder<S>
impl<S> Send for PrometheusExporterOptionsBuilder<S>
impl<S> Sync for PrometheusExporterOptionsBuilder<S>
impl<S> Unpin for PrometheusExporterOptionsBuilder<S>
impl<S> UnsafeUnpin for PrometheusExporterOptionsBuilder<S>
impl<S> UnwindSafe for PrometheusExporterOptionsBuilder<S>
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request