MetricsTracer class

Metrics tracer for the holepunch protocol

Implemented types
Available extensions

Constructors

MetricsTracer.new()
Creates a new metrics tracer

Properties

directDialFailCount int
Gets the number of failed direct dials
no setter
directDialSuccessCount int
Gets the number of successful direct dials
no setter
hashCode int
The hash code for this object.
no setterinherited
holePunchAttemptCount int
Gets the number of hole punch attempts
no setter
holePunchFailCount int
Gets the number of failed hole punches
no setter
holePunchSuccessCount int
Gets the number of successful hole punches
no setter
protocolErrorCount int
Gets the number of protocol errors
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

close() → void
Closes the tracer
override
close() → void

Available on HolePunchTracer, provided by the HolePunchTracerExt extension

Closes the tracer
directDialFailed(PeerId peerId, Duration dt, Object err) → void
Called when a direct dial fails
override
directDialSuccessful(PeerId peerId, Duration dt) → void
Called when a direct dial is successful
override
endHolePunch(PeerId peerId, Duration dt, Object? err) → void
Called when a hole punch ends
override
holePunchAttempt(PeerId peerId) → void
Called when a hole punch attempt is made
override
holePunchFinished(String side, int attempts, List<MultiAddr> addrs, List<MultiAddr> obsAddrs, Conn? conn) → void
Called when a hole punch finishes
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
protocolError(PeerId peerId, Object err) → void
Called when a protocol error occurs
override
startHolePunch(PeerId peerId, List<MultiAddr> addrs, int rtt) → void
Called when a hole punch starts
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited