pub struct PrometheusMetricsRecorder { /* private fields */ }Expand description
Prometheus-backed implementation of MetricsRecorder.
Delegates to the WiMetricsRegistry’s Prometheus collectors.
Implementations§
Source§impl PrometheusMetricsRecorder
impl PrometheusMetricsRecorder
pub fn new(registry: Arc<WiMetricsRegistry>) -> Self
Trait Implementations§
Source§impl MetricsRecorder for PrometheusMetricsRecorder
impl MetricsRecorder for PrometheusMetricsRecorder
Source§fn record_step_completed(&self, connector: &str, duration_secs: f64)
fn record_step_completed(&self, connector: &str, duration_secs: f64)
Record a successful step completion with connector name and duration.
Source§fn record_step_failed(&self, connector: &str)
fn record_step_failed(&self, connector: &str)
Record a step failure with connector name.
Source§fn record_connector_invocation(&self, connector: &str)
fn record_connector_invocation(&self, connector: &str)
Record a connector invocation (before execution).
Source§fn record_contextstore_write(&self)
fn record_contextstore_write(&self)
Record a ContextStore write operation.
Source§fn record_flow_completed(&self)
fn record_flow_completed(&self)
Record a flow run completing successfully.
Source§fn record_flow_failed(&self)
fn record_flow_failed(&self)
Record a flow run failing.
Auto Trait Implementations§
impl Freeze for PrometheusMetricsRecorder
impl !RefUnwindSafe for PrometheusMetricsRecorder
impl Send for PrometheusMetricsRecorder
impl Sync for PrometheusMetricsRecorder
impl Unpin for PrometheusMetricsRecorder
impl UnsafeUnpin for PrometheusMetricsRecorder
impl !UnwindSafe for PrometheusMetricsRecorder
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