pub struct SentrySpanProcessor {}Expand description
An OpenTelemetry SpanProcessor that converts OTEL spans to Sentry spans/transactions and sends them to Sentry.
Implementations§
Trait Implementations§
Source§impl Clone for SentrySpanProcessor
impl Clone for SentrySpanProcessor
Source§fn clone(&self) -> SentrySpanProcessor
fn clone(&self) -> SentrySpanProcessor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SentrySpanProcessor
impl Debug for SentrySpanProcessor
Source§impl Default for SentrySpanProcessor
impl Default for SentrySpanProcessor
Source§impl SpanProcessor for SentrySpanProcessor
impl SpanProcessor for SentrySpanProcessor
Source§fn on_start(&self, span: &mut Span, ctx: &Context)
fn on_start(&self, span: &mut Span, ctx: &Context)
on_start is called when a Span is started. This method is called
synchronously on the thread that started the span, therefore it should
not block or throw exceptions.Source§fn on_end(&self, data: SpanData)
fn on_end(&self, data: SpanData)
on_end is called after a Span is ended (i.e., the end timestamp is
already set). This method is called synchronously within the Span::end
API, therefore it should not block or throw an exception.
TODO - This method should take reference to SpanDataSource§fn force_flush(&self) -> OTelSdkResult
fn force_flush(&self) -> OTelSdkResult
Force the spans lying in the cache to be exported.
Source§fn shutdown(&self) -> OTelSdkResult
fn shutdown(&self) -> OTelSdkResult
Shuts down the processor. Called when SDK is shut down. This is an
opportunity for processors to do any cleanup required. Read more
Source§fn set_resource(&mut self, resource: &Resource)
fn set_resource(&mut self, resource: &Resource)
Set the resource for the span processor.
Auto Trait Implementations§
impl Freeze for SentrySpanProcessor
impl RefUnwindSafe for SentrySpanProcessor
impl Send for SentrySpanProcessor
impl Sync for SentrySpanProcessor
impl Unpin for SentrySpanProcessor
impl UnwindSafe for SentrySpanProcessor
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