pub struct AccumulatorBuilder { /* private fields */ }
Available on crate feature
metrics
only.Expand description
Configuration for an accumulator
Implementations§
Source§impl AccumulatorBuilder
impl AccumulatorBuilder
Sourcepub fn with_resource(self, resource: Resource) -> Self
pub fn with_resource(self, resource: Resource) -> Self
The resource that will be applied to all records in this accumulator.
Sourcepub fn build(self) -> Accumulator
pub fn build(self) -> Accumulator
Create a new accumulator from this configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AccumulatorBuilder
impl !RefUnwindSafe for AccumulatorBuilder
impl Send for AccumulatorBuilder
impl Sync for AccumulatorBuilder
impl Unpin for AccumulatorBuilder
impl !UnwindSafe for AccumulatorBuilder
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>
Available on crate feature
trace
only.Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Available on crate feature
trace
only.