Struct nakadion::instrumentation::Metrix [−][src]
pub struct Metrix { /* fields omitted */ }
Expand description
Instrumentation with Metrix
Implementations
Initializes the metrics.
Adds them directly into the given processor
without creating an additional group.
Creates new Metrix instrumentation and returns a mount that can be plugged with metrix
and the instrumentation which can be plugged into the Consumer
Trait Implementations
Triggered when a single connect attempt for a stream was successful Read more
Triggered when a single connect attempt for a stream failed Read more
Triggered when a stream was finally connect after maybe multiple attempts Read more
Triggered when connecting to a stream finally failed after maybe multiple attempts Read more
A chunk of data with n_bytes
was received over the network
Chunks have been assembled to a complete frame containing all required data
An internal tick signal has been emitted
The controller received a frame which contained info data Read more
The controller received a frame which contained no events Read more
fn batch_frame_received(
&self,
_frame_started_at: Instant,
frame_completed_at: Instant,
events_bytes: usize
)
fn batch_frame_received(
&self,
_frame_started_at: Instant,
frame_completed_at: Instant,
events_bytes: usize
)
A partition which was formerly not known to be active was sent data on The controller received a frame which contained events Read more
The time elapsed between the reception of 2 batches with events
No frames have been received for the given time and the warning has already threshold elapsed
No events have been received for the given time and the warning threshold has already elapsed
The stream was aborted due to a streaming related error
Tracks the number of unconsumed events. Read more
Triggered when a new batch with events was received
Triggered when a batch with events was processed
Usually triggered when there are still batches in flight and the stream aborts. Read more
A partition did not receive data for some time is is therefore considered inactive.
Events were processed.
Events were processed.
Events have been deserialized. Read more
Cursors to be committed have reached the commit stage. Read more
Cursors commit was triggered.
fn cursor_ages_on_commit_attempt(
&self,
first_cursor_age: Duration,
last_cursor_age: Duration,
first_cursor_age_warning: bool
)
fn cursor_ages_on_commit_attempt(
&self,
first_cursor_age: Duration,
last_cursor_age: Duration,
first_cursor_age_warning: bool
)
Ages of the cursors when making a commit attempt to Nakadi Read more
Cursors were successfully committed. Read more
Tracks what has been committed to track uncommitted batches and their events. Read more
Cursors were not successfully committed. Read more
An attempt to commit cursors failed. There might still be a retry Read more
Can be used to transmit limits and values via metrics Read more
Auto Trait Implementations
impl RefUnwindSafe for Metrix
impl UnwindSafe for Metrix
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more