pub struct ZPagesSpanProcessor { /* private fields */ }
๐Deprecated: This crate is deprecated and no longer maintained.
Expand description
ZPagesSpanProcessor is an alternative to external exporters. It sends span data to zPages server where it will be archive and user can use this information for debug purpose.
ZPagesSpanProcessor employs a SpanAggregator
running as another task to aggregate the spans
using the name of spans.
Implementationsยง
Sourceยงimpl ZPagesSpanProcessor
impl ZPagesSpanProcessor
Sourcepub fn new(tx: Sender<TracezMessage>) -> ZPagesSpanProcessor
pub fn new(tx: Sender<TracezMessage>) -> ZPagesSpanProcessor
Create a new ZPagesSpanProcessor
.
Trait Implementationsยง
Sourceยงimpl Debug for ZPagesSpanProcessor
impl Debug for ZPagesSpanProcessor
Sourceยงimpl SpanProcessor for ZPagesSpanProcessor
impl SpanProcessor for ZPagesSpanProcessor
Sourceยงfn on_start(&self, span: &mut Span, _cx: &Context)
fn on_start(&self, span: &mut Span, _cx: &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, span: SpanData)
fn on_end(&self, span: 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 SpanData
Sourceยง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 ZPagesSpanProcessor
impl RefUnwindSafe for ZPagesSpanProcessor
impl Send for ZPagesSpanProcessor
impl Sync for ZPagesSpanProcessor
impl Unpin for ZPagesSpanProcessor
impl UnwindSafe for ZPagesSpanProcessor
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> 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>
Wrap the input message
T
in a tonic::Request