public final class MicrometerRSocketInterceptor extends Object implements io.rsocket.plugins.RSocketInterceptor
RSocketInterceptor that intercepts interactions and gathers
Micrometer metrics about them.
The metrics are called rsocket.[ metadata.push | request.channel | request.fnf |
request.response | request.stream ] and is tagged with signal.type (SignalType)
and any additional configured tags.
| Constructor and Description |
|---|
MicrometerRSocketInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry,
io.micrometer.core.instrument.Tag... tags)
Creates a new
RSocketInterceptor. |
| Modifier and Type | Method and Description |
|---|---|
io.rsocket.micrometer.MicrometerRSocket |
apply(io.rsocket.RSocket delegate) |
public MicrometerRSocketInterceptor(io.micrometer.core.instrument.MeterRegistry meterRegistry,
io.micrometer.core.instrument.Tag... tags)
RSocketInterceptor.meterRegistry - the MeterRegistry to use to create Meters.tags - the additional tags to attach to each MeterNullPointerException - if meterRegistry is null