B - the specific type of Bound Instrument this instrument can provide.@ThreadSafe public interface SynchronousInstrument<B extends SynchronousInstrument.BoundInstrument> extends Instrument
Synchronous instrument events additionally have a Context associated with them, describing properties of the associated trace and distributed correlation values.
| Modifier and Type | Interface and Description |
|---|---|
static interface |
SynchronousInstrument.BoundInstrument |
static interface |
SynchronousInstrument.Builder
Builder class for
SynchronousInstrument. |
| Modifier and Type | Method and Description |
|---|---|
B |
bind(String... labelKeyValuePairs)
Returns a
Bound Instrument associated with the specified labels. |
B bind(String... labelKeyValuePairs)
Bound Instrument associated with the specified labels. Multiples requests
with the same set of labels may return the same Bound Instrument instance.
It is recommended that callers keep a reference to the Bound Instrument instead of always calling this method for every operation.
labelKeyValuePairs - the set of labels, as key-value pairs.Bound InstrumentNullPointerException - if labelValues is null.