pub struct TracesBuilder {Show 38 fields
id: UInt32Builder,
trace_id: FixedSizeBinaryBuilder,
span_id: FixedSizeBinaryBuilder,
parent_span_id: FixedSizeBinaryBuilder,
trace_state: StringBuilder,
flags: UInt32Builder,
name: DictColumn,
kind: UInt8Builder,
start: TimestampNanosecondBuilder,
duration: UInt64Builder,
status_code: UInt8Builder,
status_message: StringBuilder,
dropped_attrs: UInt32Builder,
dropped_events: UInt32Builder,
dropped_links: UInt32Builder,
resource_id: UInt16Builder,
scope_id: UInt16Builder,
span_attrs: AttrsBuilder,
ev_id: UInt32Builder,
ev_parent: UInt32Builder,
ev_time: TimestampNanosecondBuilder,
ev_name: DictColumn,
ev_dropped: UInt32Builder,
event_attrs: AttrsBuilder,
next_event_id: u32,
ln_id: UInt32Builder,
ln_parent: UInt32Builder,
ln_trace_id: FixedSizeBinaryBuilder,
ln_span_id: FixedSizeBinaryBuilder,
ln_trace_state: StringBuilder,
ln_flags: UInt32Builder,
ln_dropped: UInt32Builder,
link_attrs: AttrsBuilder,
next_link_id: u32,
rs: ResourceScope,
next_id: u32,
min_ts: i64,
max_ts: i64,
}Fields§
§id: UInt32Builder§trace_id: FixedSizeBinaryBuilder§span_id: FixedSizeBinaryBuilder§parent_span_id: FixedSizeBinaryBuilder§trace_state: StringBuilder§flags: UInt32Builder§name: DictColumn§kind: UInt8Builder§start: TimestampNanosecondBuilder§duration: UInt64Builder§status_code: UInt8Builder§status_message: StringBuilder§dropped_attrs: UInt32Builder§dropped_events: UInt32Builder§dropped_links: UInt32Builder§resource_id: UInt16Builder§scope_id: UInt16Builder§span_attrs: AttrsBuilder§ev_id: UInt32Builder§ev_parent: UInt32Builder§ev_time: TimestampNanosecondBuilder§ev_name: DictColumn§ev_dropped: UInt32Builder§event_attrs: AttrsBuilder§next_event_id: u32§ln_id: UInt32Builder§ln_parent: UInt32Builder§ln_trace_id: FixedSizeBinaryBuilder§ln_span_id: FixedSizeBinaryBuilder§ln_trace_state: StringBuilder§ln_flags: UInt32Builder§ln_dropped: UInt32Builder§link_attrs: AttrsBuilder§next_link_id: u32§rs: ResourceScope§next_id: u32§min_ts: i64§max_ts: i64Implementations§
Source§impl TracesBuilder
impl TracesBuilder
pub fn new() -> Self
pub fn num_rows(&self) -> usize
pub fn is_empty(&self) -> bool
Sourcepub fn approx_bytes(&self) -> usize
pub fn approx_bytes(&self) -> usize
Same accounting as crate::logs::LogsBuilder::approx_bytes: fixed-width
columns estimated from row counts, variable-width heaps measured. A span
is wider than a log record, and events and links are rows of their own.
pub fn has_headroom_for(&self, req: &ExportTraceServiceRequest) -> bool
pub fn append_request( &mut self, req: &ExportTraceServiceRequest, ) -> Result<usize>
fn append_span(&mut self, s: &Span, rid: u16, sid: u16) -> Result<()>
Sourcepub fn finish(&mut self) -> Result<Sealed>
pub fn finish(&mut self) -> Result<Sealed>
Seal and reset, including on the error path — see
SignalBuilder::finish.
fn seal(&self, sidecars: Sidecars) -> Result<Sealed>
Trait Implementations§
Source§impl Default for TracesBuilder
impl Default for TracesBuilder
Source§impl SignalBuilder for TracesBuilder
impl SignalBuilder for TracesBuilder
Source§const SIGNAL: &'static str = "traces"
const SIGNAL: &'static str = "traces"
Directory component under the data dir. Also the block name prefix, so
changing it is an on-disk format change.
Source§type Request = ExportTraceServiceRequest
type Request = ExportTraceServiceRequest
The decoded OTLP export request this signal accepts.
Source§fn has_headroom_for(&self, req: &Self::Request) -> bool
fn has_headroom_for(&self, req: &Self::Request) -> bool
Source§fn append_request(&mut self, req: &Self::Request) -> Result<usize>
fn append_request(&mut self, req: &Self::Request) -> Result<usize>
Absorb one export request, returning the number of root-table rows added.
Source§fn approx_bytes(&self) -> usize
fn approx_bytes(&self) -> usize
Rough resident cost, with variable-width heaps measured rather than
estimated from row counts — a 32 KB GenAI prompt must not weigh the same
as a 20-byte one.
fn is_empty(&self) -> bool
Auto Trait Implementations§
impl Freeze for TracesBuilder
impl RefUnwindSafe for TracesBuilder
impl Send for TracesBuilder
impl Sync for TracesBuilder
impl Unpin for TracesBuilder
impl UnsafeUnpin for TracesBuilder
impl UnwindSafe for TracesBuilder
Blanket Implementations§
impl<T> Allocation for T
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§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>
§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].