Trait opentelemetry::sdk::export::metrics::LockedProcessor[][src]

pub trait LockedProcessor {
    fn process(&mut self, accumulation: Accumulation<'_>) -> Result<()>;
}
This is supported on crate feature metrics only.

A locked processor.

The Process method is called during collection in a single-threaded context from the SDK, after the aggregator is checkpointed, allowing the processor to build the set of metrics currently being exported.

Required methods

fn process(&mut self, accumulation: Accumulation<'_>) -> Result<()>[src]

Process is called by the SDK once per internal record, passing the export Accumulation (a Descriptor, the corresponding Labels, and the checkpointed Aggregator).

The Context argument originates from the controller that orchestrates collection.

Loading content...

Implementors

Loading content...