pub struct SpanRecordBuilder {
pub ids: PrimitiveBuilder<Int64Type>,
pub parents: PrimitiveBuilder<Int64Type>,
pub depths: PrimitiveBuilder<UInt32Type>,
pub hashes: PrimitiveBuilder<UInt32Type>,
pub begins: PrimitiveBuilder<TimestampNanosecondType>,
pub ends: PrimitiveBuilder<TimestampNanosecondType>,
pub durations: PrimitiveBuilder<Int64Type>,
pub names: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub targets: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub filenames: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>,
pub lines: PrimitiveBuilder<UInt32Type>,
}Expand description
A builder for creating a RecordBatch of spans.
Fields§
§ids: PrimitiveBuilder<Int64Type>§parents: PrimitiveBuilder<Int64Type>§depths: PrimitiveBuilder<UInt32Type>§hashes: PrimitiveBuilder<UInt32Type>§begins: PrimitiveBuilder<TimestampNanosecondType>§ends: PrimitiveBuilder<TimestampNanosecondType>§durations: PrimitiveBuilder<Int64Type>§names: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§targets: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§filenames: GenericByteDictionaryBuilder<Int32Type, GenericStringType<i32>>§lines: PrimitiveBuilder<UInt32Type>Implementations§
Source§impl SpanRecordBuilder
impl SpanRecordBuilder
pub fn with_capacity(capacity: usize) -> SpanRecordBuilder
pub fn len(&self) -> i64
pub fn is_empty(&self) -> bool
pub fn append(&mut self, row: SpanRow) -> Result<(), Error>
pub fn append_call_tree(&mut self, tree: &CallTree) -> Result<(), Error>
pub fn finish(self) -> Result<RecordBatch, Error>
Auto Trait Implementations§
impl Freeze for SpanRecordBuilder
impl RefUnwindSafe for SpanRecordBuilder
impl Send for SpanRecordBuilder
impl Sync for SpanRecordBuilder
impl Unpin for SpanRecordBuilder
impl UnsafeUnpin for SpanRecordBuilder
impl UnwindSafe for SpanRecordBuilder
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].