MetricsTracer class abstract
Metrics for the EventBus implementation.
This is a port of the Go implementation from go-libp2p/p2p/host/eventbus/basic_metrics.go to Dart, using native Dart idioms. MetricsTracer tracks metrics for the eventbus subsystem
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addSubscriber(
String type) → void - Adds a subscriber for the event type
-
eventEmitted(
String type) → void - Counts the total number of events grouped by event type
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
removeSubscriber(
String type) → void - Removes a subscriber for the event type
-
subscriberEventQueued(
String name) → void - Counts the total number of events grouped by subscriber
-
subscriberQueueFull(
String name, bool isFull) → void - Reports whether a subscriber's queue is full
-
subscriberQueueLength(
String name, int length) → void - Reports the length of the subscriber's queue
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited