Struct opentelemetry::sdk::metrics::Accumulator [−][src]
pub struct Accumulator(_);
This is supported on crate feature
metrics
only.Expand description
Accumulator implements the OpenTelemetry Meter API. The Accumulator is bound
to a single Processor
.
The Accumulator supports a collect API to gather and export current data.
Collect
should be arranged according to the processor model. Push-based
processors will setup a timer to call collect
periodically. Pull-based
processors will call collect
when a pull request arrives.
Trait Implementations
Create a new synchronous instrument implementation.
fn record_batch_with_context(
&self,
_cx: &Context,
attributes: &[KeyValue],
measurements: Vec<Measurement>
)
fn record_batch_with_context(
&self,
_cx: &Context,
attributes: &[KeyValue],
measurements: Vec<Measurement>
)
Atomically record a batch of measurements.
fn new_async_instrument(
&self,
descriptor: Descriptor,
runner: Option<AsyncRunner>
) -> Result<Arc<dyn AsyncInstrumentCore>>
fn new_async_instrument(
&self,
descriptor: Descriptor,
runner: Option<AsyncRunner>
) -> Result<Arc<dyn AsyncInstrumentCore>>
Create a new asynchronous instrument implementation. Read more
Register a batch observer
Auto Trait Implementations
impl !RefUnwindSafe for Accumulator
impl Send for Accumulator
impl Sync for Accumulator
impl Unpin for Accumulator
impl !UnwindSafe for Accumulator
Blanket Implementations
Mutably borrows from an owned value. Read more