Struct HttpExporter
pub struct HttpExporter<S = ()> { /* private fields */ }Implementations§
§impl<S> HttpExporter<S>
impl<S> HttpExporter<S>
pub fn new(service: S) -> HttpExporter<S>
pub fn from_env(service: S) -> Result<HttpExporter<S>, OtelExporterConfigError>
pub fn with_endpoint(self, endpoint: Uri) -> HttpExporter<S>
pub fn with_endpoint(self, endpoint: Uri) -> HttpExporter<S>
Override the base OTLP HTTP endpoint.
pub fn set_endpoint(&mut self, endpoint: Uri) -> &mut HttpExporter<S>
pub fn set_endpoint(&mut self, endpoint: Uri) -> &mut HttpExporter<S>
Override the base OTLP HTTP endpoint.
pub fn maybe_with_timeout(self, timeout: Option<Duration>) -> HttpExporter<S>
pub fn maybe_with_timeout(self, timeout: Option<Duration>) -> HttpExporter<S>
Override the base OTLP HTTP timeout.
pub fn maybe_set_timeout(
&mut self,
timeout: Option<Duration>,
) -> &mut HttpExporter<S>
pub fn maybe_set_timeout( &mut self, timeout: Option<Duration>, ) -> &mut HttpExporter<S>
Override the base OTLP HTTP timeout.
pub fn with_timeout(self, timeout: Duration) -> HttpExporter<S>
pub fn with_timeout(self, timeout: Duration) -> HttpExporter<S>
Override the base OTLP HTTP timeout.
pub fn set_timeout(&mut self, timeout: Duration) -> &mut HttpExporter<S>
pub fn set_timeout(&mut self, timeout: Duration) -> &mut HttpExporter<S>
Override the base OTLP HTTP timeout.
pub fn without_timeout(self) -> HttpExporter<S>
pub fn without_timeout(self) -> HttpExporter<S>
Override the base OTLP HTTP timeout.
pub fn unset_timeout(&mut self) -> &mut HttpExporter<S>
pub fn unset_timeout(&mut self) -> &mut HttpExporter<S>
Override the base OTLP HTTP timeout.
pub fn maybe_with_compression(
self,
compression: Option<CompressionEncoding>,
) -> HttpExporter<S>
pub fn maybe_with_compression( self, compression: Option<CompressionEncoding>, ) -> HttpExporter<S>
Override the base OTLP HTTP compression.
pub fn maybe_set_compression(
&mut self,
compression: Option<CompressionEncoding>,
) -> &mut HttpExporter<S>
pub fn maybe_set_compression( &mut self, compression: Option<CompressionEncoding>, ) -> &mut HttpExporter<S>
Override the base OTLP HTTP compression.
pub fn with_compression(
self,
compression: CompressionEncoding,
) -> HttpExporter<S>
pub fn with_compression( self, compression: CompressionEncoding, ) -> HttpExporter<S>
Override the base OTLP HTTP compression.
pub fn set_compression(
&mut self,
compression: CompressionEncoding,
) -> &mut HttpExporter<S>
pub fn set_compression( &mut self, compression: CompressionEncoding, ) -> &mut HttpExporter<S>
Override the base OTLP HTTP compression.
pub fn without_compression(self) -> HttpExporter<S>
pub fn without_compression(self) -> HttpExporter<S>
Override the base OTLP HTTP compression.
pub fn unset_compression(&mut self) -> &mut HttpExporter<S>
pub fn unset_compression(&mut self) -> &mut HttpExporter<S>
Override the base OTLP HTTP compression.
pub fn with_headers(self, headers: HeaderMap) -> HttpExporter<S>
pub fn with_headers(self, headers: HeaderMap) -> HttpExporter<S>
Override the base OTLP HTTP headers.
pub fn set_headers(&mut self, headers: HeaderMap) -> &mut HttpExporter<S>
pub fn set_headers(&mut self, headers: HeaderMap) -> &mut HttpExporter<S>
Override the base OTLP HTTP headers.
pub fn maybe_with_traces_endpoint(
self,
endpoint: Option<Uri>,
) -> HttpExporter<S>
pub fn maybe_with_traces_endpoint( self, endpoint: Option<Uri>, ) -> HttpExporter<S>
Override the trace-specific OTLP HTTP endpoint.
pub fn maybe_set_traces_endpoint(
&mut self,
endpoint: Option<Uri>,
) -> &mut HttpExporter<S>
pub fn maybe_set_traces_endpoint( &mut self, endpoint: Option<Uri>, ) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP endpoint.
pub fn with_traces_endpoint(self, endpoint: Uri) -> HttpExporter<S>
pub fn with_traces_endpoint(self, endpoint: Uri) -> HttpExporter<S>
Override the trace-specific OTLP HTTP endpoint.
pub fn set_traces_endpoint(&mut self, endpoint: Uri) -> &mut HttpExporter<S>
pub fn set_traces_endpoint(&mut self, endpoint: Uri) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP endpoint.
pub fn without_traces_endpoint(self) -> HttpExporter<S>
pub fn without_traces_endpoint(self) -> HttpExporter<S>
Override the trace-specific OTLP HTTP endpoint.
pub fn unset_traces_endpoint(&mut self) -> &mut HttpExporter<S>
pub fn unset_traces_endpoint(&mut self) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP endpoint.
pub fn maybe_with_traces_timeout(
self,
timeout: Option<Duration>,
) -> HttpExporter<S>
pub fn maybe_with_traces_timeout( self, timeout: Option<Duration>, ) -> HttpExporter<S>
Override the trace-specific OTLP HTTP timeout.
pub fn maybe_set_traces_timeout(
&mut self,
timeout: Option<Duration>,
) -> &mut HttpExporter<S>
pub fn maybe_set_traces_timeout( &mut self, timeout: Option<Duration>, ) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP timeout.
pub fn with_traces_timeout(self, timeout: Duration) -> HttpExporter<S>
pub fn with_traces_timeout(self, timeout: Duration) -> HttpExporter<S>
Override the trace-specific OTLP HTTP timeout.
pub fn set_traces_timeout(&mut self, timeout: Duration) -> &mut HttpExporter<S>
pub fn set_traces_timeout(&mut self, timeout: Duration) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP timeout.
pub fn without_traces_timeout(self) -> HttpExporter<S>
pub fn without_traces_timeout(self) -> HttpExporter<S>
Override the trace-specific OTLP HTTP timeout.
pub fn unset_traces_timeout(&mut self) -> &mut HttpExporter<S>
pub fn unset_traces_timeout(&mut self) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP timeout.
pub fn maybe_with_traces_compression(
self,
compression: Option<CompressionEncoding>,
) -> HttpExporter<S>
pub fn maybe_with_traces_compression( self, compression: Option<CompressionEncoding>, ) -> HttpExporter<S>
Override the trace-specific OTLP HTTP compression.
pub fn maybe_set_traces_compression(
&mut self,
compression: Option<CompressionEncoding>,
) -> &mut HttpExporter<S>
pub fn maybe_set_traces_compression( &mut self, compression: Option<CompressionEncoding>, ) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP compression.
pub fn with_traces_compression(
self,
compression: CompressionEncoding,
) -> HttpExporter<S>
pub fn with_traces_compression( self, compression: CompressionEncoding, ) -> HttpExporter<S>
Override the trace-specific OTLP HTTP compression.
pub fn set_traces_compression(
&mut self,
compression: CompressionEncoding,
) -> &mut HttpExporter<S>
pub fn set_traces_compression( &mut self, compression: CompressionEncoding, ) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP compression.
pub fn without_traces_compression(self) -> HttpExporter<S>
pub fn without_traces_compression(self) -> HttpExporter<S>
Override the trace-specific OTLP HTTP compression.
pub fn unset_traces_compression(&mut self) -> &mut HttpExporter<S>
pub fn unset_traces_compression(&mut self) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP compression.
pub fn with_traces_headers(self, headers: HeaderMap) -> HttpExporter<S>
pub fn with_traces_headers(self, headers: HeaderMap) -> HttpExporter<S>
Override the trace-specific OTLP HTTP headers.
pub fn set_traces_headers(&mut self, headers: HeaderMap) -> &mut HttpExporter<S>
pub fn set_traces_headers(&mut self, headers: HeaderMap) -> &mut HttpExporter<S>
Override the trace-specific OTLP HTTP headers.
pub fn maybe_with_metrics_endpoint(
self,
endpoint: Option<Uri>,
) -> HttpExporter<S>
pub fn maybe_with_metrics_endpoint( self, endpoint: Option<Uri>, ) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP endpoint.
pub fn maybe_set_metrics_endpoint(
&mut self,
endpoint: Option<Uri>,
) -> &mut HttpExporter<S>
pub fn maybe_set_metrics_endpoint( &mut self, endpoint: Option<Uri>, ) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP endpoint.
pub fn with_metrics_endpoint(self, endpoint: Uri) -> HttpExporter<S>
pub fn with_metrics_endpoint(self, endpoint: Uri) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP endpoint.
pub fn set_metrics_endpoint(&mut self, endpoint: Uri) -> &mut HttpExporter<S>
pub fn set_metrics_endpoint(&mut self, endpoint: Uri) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP endpoint.
pub fn without_metrics_endpoint(self) -> HttpExporter<S>
pub fn without_metrics_endpoint(self) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP endpoint.
pub fn unset_metrics_endpoint(&mut self) -> &mut HttpExporter<S>
pub fn unset_metrics_endpoint(&mut self) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP endpoint.
pub fn maybe_with_metrics_timeout(
self,
timeout: Option<Duration>,
) -> HttpExporter<S>
pub fn maybe_with_metrics_timeout( self, timeout: Option<Duration>, ) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP timeout.
pub fn maybe_set_metrics_timeout(
&mut self,
timeout: Option<Duration>,
) -> &mut HttpExporter<S>
pub fn maybe_set_metrics_timeout( &mut self, timeout: Option<Duration>, ) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP timeout.
pub fn with_metrics_timeout(self, timeout: Duration) -> HttpExporter<S>
pub fn with_metrics_timeout(self, timeout: Duration) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP timeout.
pub fn set_metrics_timeout(&mut self, timeout: Duration) -> &mut HttpExporter<S>
pub fn set_metrics_timeout(&mut self, timeout: Duration) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP timeout.
pub fn without_metrics_timeout(self) -> HttpExporter<S>
pub fn without_metrics_timeout(self) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP timeout.
pub fn unset_metrics_timeout(&mut self) -> &mut HttpExporter<S>
pub fn unset_metrics_timeout(&mut self) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP timeout.
pub fn maybe_with_metrics_compression(
self,
compression: Option<CompressionEncoding>,
) -> HttpExporter<S>
pub fn maybe_with_metrics_compression( self, compression: Option<CompressionEncoding>, ) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP compression.
pub fn maybe_set_metrics_compression(
&mut self,
compression: Option<CompressionEncoding>,
) -> &mut HttpExporter<S>
pub fn maybe_set_metrics_compression( &mut self, compression: Option<CompressionEncoding>, ) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP compression.
pub fn with_metrics_compression(
self,
compression: CompressionEncoding,
) -> HttpExporter<S>
pub fn with_metrics_compression( self, compression: CompressionEncoding, ) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP compression.
pub fn set_metrics_compression(
&mut self,
compression: CompressionEncoding,
) -> &mut HttpExporter<S>
pub fn set_metrics_compression( &mut self, compression: CompressionEncoding, ) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP compression.
pub fn without_metrics_compression(self) -> HttpExporter<S>
pub fn without_metrics_compression(self) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP compression.
pub fn unset_metrics_compression(&mut self) -> &mut HttpExporter<S>
pub fn unset_metrics_compression(&mut self) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP compression.
pub fn with_metrics_headers(self, headers: HeaderMap) -> HttpExporter<S>
pub fn with_metrics_headers(self, headers: HeaderMap) -> HttpExporter<S>
Override the metrics-specific OTLP HTTP headers.
pub fn set_metrics_headers(
&mut self,
headers: HeaderMap,
) -> &mut HttpExporter<S>
pub fn set_metrics_headers( &mut self, headers: HeaderMap, ) -> &mut HttpExporter<S>
Override the metrics-specific OTLP HTTP headers.
pub fn with_temporality(self, temporality: Temporality) -> HttpExporter<S>
pub fn with_temporality(self, temporality: Temporality) -> HttpExporter<S>
Configure the metric temporality used by this exporter.
pub fn set_temporality(
&mut self,
temporality: Temporality,
) -> &mut HttpExporter<S>
pub fn set_temporality( &mut self, temporality: Temporality, ) -> &mut HttpExporter<S>
Configure the metric temporality used by this exporter.
Trait Implementations§
§impl<S> Clone for HttpExporter<S>where
S: Clone,
impl<S> Clone for HttpExporter<S>where
S: Clone,
§fn clone(&self) -> HttpExporter<S>
fn clone(&self) -> HttpExporter<S>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl<S> Debug for HttpExporter<S>where
S: Debug,
impl<S> Debug for HttpExporter<S>where
S: Debug,
§impl<S> PushMetricExporter for HttpExporter<S>
impl<S> PushMetricExporter for HttpExporter<S>
§async fn export(&self, metrics: &ResourceMetrics) -> Result<(), OTelSdkError>
async fn export(&self, metrics: &ResourceMetrics) -> Result<(), OTelSdkError>
§fn force_flush(&self) -> Result<(), OTelSdkError>
fn force_flush(&self) -> Result<(), OTelSdkError>
§fn shutdown_with_timeout(&self, _timeout: Duration) -> Result<(), OTelSdkError>
fn shutdown_with_timeout(&self, _timeout: Duration) -> Result<(), OTelSdkError>
§fn temporality(&self) -> Temporality
fn temporality(&self) -> Temporality
§fn shutdown(&self) -> Result<(), OTelSdkError>
fn shutdown(&self) -> Result<(), OTelSdkError>
§impl<S> SpanExporter for HttpExporter<S>
impl<S> SpanExporter for HttpExporter<S>
§async fn export(&self, batch: Vec<SpanData>) -> Result<(), OTelSdkError>
async fn export(&self, batch: Vec<SpanData>) -> Result<(), OTelSdkError>
§fn shutdown_with_timeout(
&mut self,
_timeout: Duration,
) -> Result<(), OTelSdkError>
fn shutdown_with_timeout( &mut self, _timeout: Duration, ) -> Result<(), OTelSdkError>
§fn force_flush(&mut self) -> Result<(), OTelSdkError>
fn force_flush(&mut self) -> Result<(), OTelSdkError>
§fn set_resource(&mut self, resource: &Resource)
fn set_resource(&mut self, resource: &Resource)
§fn shutdown(&mut self) -> Result<(), OTelSdkError>
fn shutdown(&mut self) -> Result<(), OTelSdkError>
Auto Trait Implementations§
impl<S = ()> !Freeze for HttpExporter<S>
impl<S> RefUnwindSafe for HttpExporter<S>where
S: RefUnwindSafe,
impl<S> Send for HttpExporter<S>where
S: Send,
impl<S> Sync for HttpExporter<S>where
S: Sync,
impl<S> Unpin for HttpExporter<S>where
S: Unpin,
impl<S> UnsafeUnpin for HttpExporter<S>where
S: UnsafeUnpin,
impl<S> UnwindSafe for HttpExporter<S>where
S: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a rama_grpc::Request§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§fn and<P, B, E>(self, other: P) -> And<T, P>
fn and<P, B, E>(self, other: P) -> And<T, P>
Policy that returns Action::Follow only if self and other return
Action::Follow. Read more