Trait nakadion::publisher::Instruments [−][src]
pub trait Instruments {
fn published(&self, elapsed: Duration);
fn publish_failed(&self, elapsed: Duration);
fn batch_stats(&self, stats: BatchStats);
}
Expand description
Instruments a Publisher
Required methods
fn publish_failed(&self, elapsed: Duration)
fn publish_failed(&self, elapsed: Duration)
Not all batch items have been successfully submitted
fn batch_stats(&self, stats: BatchStats)
fn batch_stats(&self, stats: BatchStats)
Stats after each attempt to submit a batch