Class NoopLabelsProcessor
- java.lang.Object
-
- io.opentelemetry.sdk.metrics.processor.NoopLabelsProcessor
-
- All Implemented Interfaces:
LabelsProcessor
public class NoopLabelsProcessor extends Object implements LabelsProcessor
-
-
Constructor Summary
Constructors Constructor Description NoopLabelsProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.opentelemetry.api.metrics.common.LabelsonLabelsBound(io.opentelemetry.context.Context c, io.opentelemetry.api.metrics.common.Labels labels)Called when bound synchronous instrument is created or metrics are recorded for non-bound synchronous instrument.
-
-
-
Method Detail
-
onLabelsBound
public io.opentelemetry.api.metrics.common.Labels onLabelsBound(io.opentelemetry.context.Context c, io.opentelemetry.api.metrics.common.Labels labels)Description copied from interface:LabelsProcessorCalled when bound synchronous instrument is created or metrics are recorded for non-bound synchronous instrument. Allows to manipulate labels which this instrument is bound to in case of binding operation or labels used for recording values in case of non-bound synchronous instrument. Particular use case includes enriching labels and/or adding more labels depending on the ContextPlease note, this is an experimental API. In case of bound instruments, it will be only invoked upon instrument binding and not when measurements are recorded.
- Specified by:
onLabelsBoundin interfaceLabelsProcessor- Parameters:
c- context of the operationlabels- immutable labels. When processors are chained output labels of the previous one is passed as an input to the next one. Last labels returned by a chain of processors are used for bind() operation.- Returns:
- labels to be used as an input to the next processor in chain or bind() operation if this is the last processor
-
-