pub struct StackDriverExporter { /* private fields */ }The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Expand description
Exports opentelemetry tracing spans to Google StackDriver.
As of the time of this writing, the opentelemetry crate exposes no link information so this struct does not send link information.
Implementationsยง
Sourceยงimpl StackDriverExporter
impl StackDriverExporter
pub fn builder() -> Builder
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
pub fn pending_count(&self) -> usize
The opentelemetry-stackdriver crate is deprecated and will be removed from opentelemetry-rust-contrib. Migrate to OTLP (Google Cloud supports OTLP ingestion, and the OpenTelemetry Collector ships a googlecloud exporter). See https://github.com/open-telemetry/opentelemetry-rust-contrib/issues/609 for context.
Trait Implementationsยง
Sourceยงimpl Clone for StackDriverExporter
impl Clone for StackDriverExporter
Sourceยงfn clone(&self) -> StackDriverExporter
fn clone(&self) -> StackDriverExporter
1.0.0 (const: unstable) ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSourceยงimpl Debug for StackDriverExporter
impl Debug for StackDriverExporter
Sourceยงimpl SpanExporter for StackDriverExporter
impl SpanExporter for StackDriverExporter
Sourceยงasync fn export(&self, batch: Vec<SpanData>) -> OTelSdkResult
async fn export(&self, batch: Vec<SpanData>) -> OTelSdkResult
Sourceยงfn shutdown(&self) -> OTelSdkResult
fn shutdown(&self) -> OTelSdkResult
Sourceยงfn set_resource(&mut self, resource: &Resource)
fn set_resource(&mut self, resource: &Resource)
Sourceยงfn shutdown_with_timeout(&self, _timeout: Duration) -> Result<(), OTelSdkError>
fn shutdown_with_timeout(&self, _timeout: Duration) -> Result<(), OTelSdkError>
Sourceยงfn force_flush(&self) -> Result<(), OTelSdkError>
fn force_flush(&self) -> Result<(), OTelSdkError>
Auto Trait Implementationsยง
impl !RefUnwindSafe for StackDriverExporter
impl !UnwindSafe for StackDriverExporter
impl Freeze for StackDriverExporter
impl Send for StackDriverExporter
impl Sync for StackDriverExporter
impl Unpin for StackDriverExporter
impl UnsafeUnpin for StackDriverExporter
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
Sourceยงimpl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Sourceยงimpl<T> FutureExt for T
impl<T> FutureExt for T
Sourceยงfn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Sourceยงfn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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>
T in a tonic::Request