conduit 0.6.0
Modern C++23 header-only event-dispatching / event-transport library
Loading...
Searching...
No Matches
Functions
conduit::metrics Namespace Reference

Functions

std::shared_ptr< prom::Scope > & scope ()
 The shared conduit scope; applies the conduit_ prefix to every metric.
 
prom::Counter & events_published ()
 Envelopes that entered the dispatch pipeline (one per Bus::publish).
 
prom::Counter & events_dropped ()
 Envelopes dropped before listener fan-out (a middleware before_dispatch returned false, or a routing conflict).
 
prom::Counter & listener_invocations ()
 Listener handler calls during fan-out (counts every matched listener, summed over all delivered envelopes).
 
prom::Counter & listener_errors ()
 Listener handlers that threw during fan-out.
 
prom::Counter & transport_errors ()
 Transport-level inbound failures, selected by the transport label ("redis", "amqp", "zmq", "mqtt", "nats", …).
 
prom::Gauge & listeners ()
 Live listener subscriptions across all buses in the process.
 
prom::Histogram & dispatch_seconds ()
 Wall-clock seconds from publish to the end of the synchronous dispatch pipeline.
 

Function Documentation

◆ dispatch_seconds()

prom::Histogram & conduit::metrics::dispatch_seconds ( )
inline

Wall-clock seconds from publish to the end of the synchronous dispatch pipeline.

For asynchronous transports (Queue / ThreadPool) this measures the enqueue + routing portion, not the listener execution that runs off-thread.

◆ events_dropped()

prom::Counter & conduit::metrics::events_dropped ( )
inline

Envelopes dropped before listener fan-out (a middleware before_dispatch returned false, or a routing conflict).

◆ events_published()

prom::Counter & conduit::metrics::events_published ( )
inline

Envelopes that entered the dispatch pipeline (one per Bus::publish).

◆ listener_errors()

prom::Counter & conduit::metrics::listener_errors ( )
inline

Listener handlers that threw during fan-out.

◆ listener_invocations()

prom::Counter & conduit::metrics::listener_invocations ( )
inline

Listener handler calls during fan-out (counts every matched listener, summed over all delivered envelopes).

◆ listeners()

prom::Gauge & conduit::metrics::listeners ( )
inline

Live listener subscriptions across all buses in the process.

◆ scope()

std::shared_ptr< prom::Scope > & conduit::metrics::scope ( )
inline

The shared conduit scope; applies the conduit_ prefix to every metric.

◆ transport_errors()

prom::Counter & conduit::metrics::transport_errors ( )
inline

Transport-level inbound failures, selected by the transport label ("redis", "amqp", "zmq", "mqtt", "nats", …).