pub struct NetSpanTreeBuilder<'a> { /* private fields */ }Expand description
Builds net_spans rows from a stream of net events.
The builder owns an open-span stack that persists across parse_net_block calls;
callers drive multiple blocks through the same builder to stitch spans across
block boundaries within a contiguous block group.
Implementations§
Source§impl<'a> NetSpanTreeBuilder<'a>
impl<'a> NetSpanTreeBuilder<'a>
pub fn new( record_builder: &'a mut NetSpanRecordBuilder, process_id: Arc<String>, stream_id: Arc<String>, convert_ticks: ConvertTicks, ) -> NetSpanTreeBuilder<'a>
Trait Implementations§
Source§impl<'a> NetBlockProcessor for NetSpanTreeBuilder<'a>
impl<'a> NetBlockProcessor for NetSpanTreeBuilder<'a>
fn on_connection_begin( &mut self, event_id: i64, time: i64, connection_name: Arc<String>, is_outgoing: bool, ) -> Result<bool, Error>
fn on_connection_end( &mut self, _event_id: i64, time: i64, bit_size: i64, ) -> Result<bool, Error>
fn on_object_begin( &mut self, event_id: i64, time: i64, object_name: Arc<String>, ) -> Result<bool, Error>
fn on_object_end( &mut self, _event_id: i64, time: i64, bit_size: i64, ) -> Result<bool, Error>
fn on_property( &mut self, event_id: i64, time: i64, property_name: Arc<String>, bit_size: i64, ) -> Result<bool, Error>
fn on_rpc_begin( &mut self, event_id: i64, time: i64, function_name: Arc<String>, ) -> Result<bool, Error>
fn on_rpc_end( &mut self, _event_id: i64, time: i64, bit_size: i64, ) -> Result<bool, Error>
Auto Trait Implementations§
impl<'a> Freeze for NetSpanTreeBuilder<'a>
impl<'a> RefUnwindSafe for NetSpanTreeBuilder<'a>
impl<'a> Send for NetSpanTreeBuilder<'a>
impl<'a> Sync for NetSpanTreeBuilder<'a>
impl<'a> Unpin for NetSpanTreeBuilder<'a>
impl<'a> !UnwindSafe for NetSpanTreeBuilder<'a>
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
§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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].