Struct opentelemetry::sdk::trace::SpanLimits
source · [−]pub struct SpanLimits {
pub max_events_per_span: u32,
pub max_attributes_per_span: u32,
pub max_links_per_span: u32,
pub max_attributes_per_event: u32,
pub max_attributes_per_link: u32,
}
Available on crate feature
trace
only.Expand description
Span limit configuration to keep attributes, events and links to a span in a reasonable number.
Fields
max_events_per_span: u32
The max events that can be added to a Span
.
max_attributes_per_span: u32
The max attributes that can be added to a Span
.
max_links_per_span: u32
The max links that can be added to a Span
.
max_attributes_per_event: u32
The max attributes that can be added into an Event
max_attributes_per_link: u32
The max attributes that can be added into a Link
Trait Implementations
sourceimpl Clone for SpanLimits
impl Clone for SpanLimits
sourcefn clone(&self) -> SpanLimits
fn clone(&self) -> SpanLimits
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SpanLimits
impl Debug for SpanLimits
sourceimpl Default for SpanLimits
impl Default for SpanLimits
sourcefn default() -> SpanLimits
fn default() -> SpanLimits
Returns the “default value” for a type. Read more
impl Copy for SpanLimits
Auto Trait Implementations
impl RefUnwindSafe for SpanLimits
impl Send for SpanLimits
impl Sync for SpanLimits
impl Unpin for SpanLimits
impl UnwindSafe for SpanLimits
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more