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(Labels labels)
Returns a
Bound Instrument associated with the specified labels. |
B bind(Labels labels)
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.
labels
- the set of labels, as key-value pairs.Bound Instrument
java.lang.NullPointerException
- if labelValues
is null.