pub struct NoopMetrics;Expand description
A no-op Metrics implementation that discards all events.
Trait Implementations§
Source§impl Debug for NoopMetrics
impl Debug for NoopMetrics
Source§impl Default for NoopMetrics
impl Default for NoopMetrics
Source§fn default() -> NoopMetrics
fn default() -> NoopMetrics
Returns the “default value” for a type. Read more
Source§impl Metrics for NoopMetrics
impl Metrics for NoopMetrics
Source§fn on_request(&self, _method: &str)
fn on_request(&self, _method: &str)
Called when a request is received, before processing.
Source§fn on_response(&self, _method: &str)
fn on_response(&self, _method: &str)
Called when a response is successfully sent.
Source§fn on_error(&self, _method: &str, _error_kind: &str)
fn on_error(&self, _method: &str, _error_kind: &str)
Called when a request results in an error. Read more
Source§fn on_latency(&self, _method: &str, _duration: Duration)
fn on_latency(&self, _method: &str, _duration: Duration)
Called when a request completes (successfully or not) with the wall-clock
duration from receipt to response. Read more
Source§fn on_queue_depth_change(&self, _active_queues: usize)
fn on_queue_depth_change(&self, _active_queues: usize)
Called when the number of active event queues changes.
Source§fn on_connection_pool_stats(&self, _stats: &ConnectionPoolStats)
fn on_connection_pool_stats(&self, _stats: &ConnectionPoolStats)
Called with connection pool statistics when available. Read more
Source§fn on_persistence_error(&self, _operation: &str, _error_kind: &str)
fn on_persistence_error(&self, _operation: &str, _error_kind: &str)
Called when the background event processor fails to persist a task. Read more
Source§fn on_store_retry(&self, _operation: &str, _cause: &str)
fn on_store_retry(&self, _operation: &str, _cause: &str)
Called each time a store operation is run again because it could not
be done the first time for a reason that passes: the store answered
“not now” (
cause = "unavailable", a turn’s event write, retried for
up to HandlerLimits::store_write_retry), or a PostgreSQL statement
lost its connection and ran once more on a fresh one
(operation = "statement", cause = "connection_lost"). Read moreSource§fn on_push_delivery(&self, _outcome: &str)
fn on_push_delivery(&self, _outcome: &str)
Called after each attempt to deliver a push notification. Read more
Source§fn on_rpc_call(&self, _call: &RpcCall<'_>)
fn on_rpc_call(&self, _call: &RpcCall<'_>)
Source§fn on_executor_run(&self, _outcome: &str, _duration: Duration)
fn on_executor_run(&self, _outcome: &str, _duration: Duration)
Called once when an agent executor’s run ends, with how it ended and
how long the run took. Read more
Source§fn on_refusal(&self, _cause: &str)
fn on_refusal(&self, _cause: &str)
Called when a request is refused before any work, with why: one of
control::refusal. The same refusal is also an
on_error of class overloaded; this says which
limit or store refused it (audit H11).Source§fn on_lease(&self, _event: &str)
fn on_lease(&self, _event: &str)
Called on a task lease event: one of
control::lease.Source§fn on_halt(&self, _scope: &str, _action: &str, _stopped: usize)
fn on_halt(&self, _scope: &str, _action: &str, _stopped: usize)
Called when a halt or a resume is applied:
scope is one of
control::halt_scope, action one of control::halt_action, and
stopped how many running tasks a halt stopped (0 for a resume).Source§fn on_steering(&self, _outcome: &str)
fn on_steering(&self, _outcome: &str)
Called once for each steering message (ADR 0036) the server decides
about, with how it ended: one of
control::steering. Read moreSource§fn on_claim(&self, _event: &str)
fn on_claim(&self, _event: &str)
Called on a turn-claim event: one of
control::claim.Source§fn on_subscribe_wake(&self, _cause: &str)
fn on_subscribe_wake(&self, _cause: &str)
Called when a
SubscribeToTask stream that waits on a task’s event
log (a stream on a replica that does not run the task) stops waiting
to read the store again: cause is one of subscribe_wake. Read moreAuto Trait Implementations§
impl Forget for NoopMetrics
impl Freeze for NoopMetrics
impl Move for NoopMetrics
impl RefUnwindSafe for NoopMetrics
impl Send for NoopMetrics
impl Sync for NoopMetrics
impl Unpin for NoopMetrics
impl UnsafeUnpin for NoopMetrics
impl UnwindSafe for NoopMetrics
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Applies the layer to a service and wraps it in [
Layered].