pub struct OtelCollectorOptionsBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> OtelCollectorOptionsBuilder<S>
impl<S: State> OtelCollectorOptionsBuilder<S>
Sourcepub fn build(self) -> OtelCollectorOptionswhere
S: IsComplete,
pub fn build(self) -> OtelCollectorOptionswhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn url(self, value: Url) -> OtelCollectorOptionsBuilder<SetUrl<S>>where
S::Url: IsUnset,
pub fn url(self, value: Url) -> OtelCollectorOptionsBuilder<SetUrl<S>>where
S::Url: IsUnset,
Required.
The url of the OTel collector to export telemetry and metrics to. Lang SDK should also export to this same collector.
Sourcepub fn headers(
self,
value: HashMap<String, String>,
) -> OtelCollectorOptionsBuilder<SetHeaders<S>>where
S::Headers: IsUnset,
pub fn headers(
self,
value: HashMap<String, String>,
) -> OtelCollectorOptionsBuilder<SetHeaders<S>>where
S::Headers: IsUnset,
Sourcepub fn maybe_headers(
self,
value: Option<HashMap<String, String>>,
) -> OtelCollectorOptionsBuilder<SetHeaders<S>>where
S::Headers: IsUnset,
pub fn maybe_headers(
self,
value: Option<HashMap<String, String>>,
) -> OtelCollectorOptionsBuilder<SetHeaders<S>>where
S::Headers: IsUnset,
Sourcepub fn metric_periodicity(
self,
value: Duration,
) -> OtelCollectorOptionsBuilder<SetMetricPeriodicity<S>>where
S::MetricPeriodicity: IsUnset,
pub fn metric_periodicity(
self,
value: Duration,
) -> OtelCollectorOptionsBuilder<SetMetricPeriodicity<S>>where
S::MetricPeriodicity: IsUnset,
Sourcepub fn maybe_metric_periodicity(
self,
value: Option<Duration>,
) -> OtelCollectorOptionsBuilder<SetMetricPeriodicity<S>>where
S::MetricPeriodicity: IsUnset,
pub fn maybe_metric_periodicity(
self,
value: Option<Duration>,
) -> OtelCollectorOptionsBuilder<SetMetricPeriodicity<S>>where
S::MetricPeriodicity: IsUnset,
Sourcepub fn metric_temporality(
self,
value: MetricTemporality,
) -> OtelCollectorOptionsBuilder<SetMetricTemporality<S>>where
S::MetricTemporality: IsUnset,
pub fn metric_temporality(
self,
value: MetricTemporality,
) -> OtelCollectorOptionsBuilder<SetMetricTemporality<S>>where
S::MetricTemporality: IsUnset,
Sourcepub fn maybe_metric_temporality(
self,
value: Option<MetricTemporality>,
) -> OtelCollectorOptionsBuilder<SetMetricTemporality<S>>where
S::MetricTemporality: IsUnset,
pub fn maybe_metric_temporality(
self,
value: Option<MetricTemporality>,
) -> OtelCollectorOptionsBuilder<SetMetricTemporality<S>>where
S::MetricTemporality: IsUnset,
Sourcepub fn use_seconds_for_durations(
self,
value: bool,
) -> OtelCollectorOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
pub fn use_seconds_for_durations(
self,
value: bool,
) -> OtelCollectorOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
Sourcepub fn maybe_use_seconds_for_durations(
self,
value: Option<bool>,
) -> OtelCollectorOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
pub fn maybe_use_seconds_for_durations(
self,
value: Option<bool>,
) -> OtelCollectorOptionsBuilder<SetUseSecondsForDurations<S>>where
S::UseSecondsForDurations: IsUnset,
Sourcepub fn histogram_bucket_overrides(
self,
value: HistogramBucketOverrides,
) -> OtelCollectorOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
pub fn histogram_bucket_overrides(
self,
value: HistogramBucketOverrides,
) -> OtelCollectorOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
Sourcepub fn maybe_histogram_bucket_overrides(
self,
value: Option<HistogramBucketOverrides>,
) -> OtelCollectorOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
pub fn maybe_histogram_bucket_overrides(
self,
value: Option<HistogramBucketOverrides>,
) -> OtelCollectorOptionsBuilder<SetHistogramBucketOverrides<S>>where
S::HistogramBucketOverrides: IsUnset,
Sourcepub fn protocol(
self,
value: OtlpProtocol,
) -> OtelCollectorOptionsBuilder<SetProtocol<S>>where
S::Protocol: IsUnset,
pub fn protocol(
self,
value: OtlpProtocol,
) -> OtelCollectorOptionsBuilder<SetProtocol<S>>where
S::Protocol: IsUnset,
Sourcepub fn maybe_protocol(
self,
value: Option<OtlpProtocol>,
) -> OtelCollectorOptionsBuilder<SetProtocol<S>>where
S::Protocol: IsUnset,
pub fn maybe_protocol(
self,
value: Option<OtlpProtocol>,
) -> OtelCollectorOptionsBuilder<SetProtocol<S>>where
S::Protocol: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for OtelCollectorOptionsBuilder<S>
impl<S> RefUnwindSafe for OtelCollectorOptionsBuilder<S>
impl<S> Send for OtelCollectorOptionsBuilder<S>
impl<S> Sync for OtelCollectorOptionsBuilder<S>
impl<S> Unpin for OtelCollectorOptionsBuilder<S>
impl<S> UnsafeUnpin for OtelCollectorOptionsBuilder<S>
impl<S> UnwindSafe for OtelCollectorOptionsBuilder<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