public final class MicrometerDuplexConnectionInterceptor extends Object implements io.rsocket.plugins.DuplexConnectionInterceptor
DuplexConnectionInterceptor that intercepts frames and gathers
Micrometer metrics about them.
The metric is called rsocket.frame and is tagged with connection.type (Type), frame.type (FrameType), and any additional configured tags. rsocket.duplex.connection.close and rsocket.duplex.connection.dispose metrics, tagged
with connection.type (Type) and any additional configured tags are also
collected.
| Constructor and Description |
|---|
MicrometerDuplexConnectionInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry,
io.micrometer.core.instrument.Tag... tags)
Creates a new
DuplexConnectionInterceptor. |
| Modifier and Type | Method and Description |
|---|---|
io.rsocket.micrometer.MicrometerDuplexConnection |
apply(io.rsocket.plugins.DuplexConnectionInterceptor.Type connectionType,
io.rsocket.DuplexConnection delegate) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenpublic MicrometerDuplexConnectionInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry,
io.micrometer.core.instrument.Tag... tags)
DuplexConnectionInterceptor.meterRegistry - the MeterRegistry to use to create Meters.tags - the additional tags to attach to each MeterNullPointerException - if meterRegistry is nullpublic io.rsocket.micrometer.MicrometerDuplexConnection apply(io.rsocket.plugins.DuplexConnectionInterceptor.Type connectionType,
io.rsocket.DuplexConnection delegate)
apply in interface BiFunction<io.rsocket.plugins.DuplexConnectionInterceptor.Type,io.rsocket.DuplexConnection,io.rsocket.DuplexConnection>