Skip to main content

NoopMetrics

Struct NoopMetrics 

Source
pub struct NoopMetrics;
Expand description

A no-op Metrics implementation that discards all events.

Trait Implementations§

Source§

impl Debug for NoopMetrics

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl Default for NoopMetrics

Source§

fn default() -> NoopMetrics

Returns the “default value” for a type. Read more
Source§

impl Metrics for NoopMetrics

Source§

fn on_request(&self, _method: &str)

Called when a request is received, before processing.
Source§

fn on_response(&self, _method: &str)

Called when a response is successfully sent.
Source§

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)

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)

Called when the number of active event queues changes.
Source§

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)

Called when the background event processor fails to persist a task. Read more
Source§

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 more
Source§

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<'_>)

Called once per inbound A2A call, on every binding, when it finishes — with what the OpenTelemetry semantic conventions’ rpc.server.call.duration records. See RpcCall. Read more
Source§

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)

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)

Called on a task lease event: one of control::lease.
Source§

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)

Called once for each steering message (ADR 0036) the server decides about, with how it ended: one of control::steering. Read more
Source§

fn on_claim(&self, _event: &str)

Called on a turn-claim event: one of control::claim.
Source§

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 more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<'a, T, E> AsTaggedExplicit<'a, E> for T
where T: 'a,

§

fn explicit(self, class: Class, tag: u32) -> TaggedParser<'a, Explicit, Self, E>

§

impl<'a, T, E> AsTaggedImplicit<'a, E> for T
where T: 'a,

§

fn implicit( self, class: Class, constructed: bool, tag: u32, ) -> TaggedParser<'a, Implicit, Self, E>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> FutureExt for T

§

fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
§

fn with_current_context(self) -> WithContext<Self> ⓘ

Attaches the current Context to this type, returning a WithContext wrapper. Read more
§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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

§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
§

impl<L> LayerExt<L> for L

§

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].
§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more