public class OperationMetricLabel extends Object implements MetricLabel
| Constructor and Description |
|---|
OperationMetricLabel() |
| Modifier and Type | Method and Description |
|---|---|
Object |
defaultValue()
This method returns a default value for the specified
label, if one is defined, otherwise null.
|
String |
name()
This method returns the name of the metric label.
|
Object |
value(io.opentracing.contrib.api.SpanData spanData)
This method returns a metric label value.
|
public String name()
MetricLabelname in interface MetricLabelpublic Object defaultValue()
MetricLabeldefaultValue in interface MetricLabelpublic Object value(io.opentracing.contrib.api.SpanData spanData)
MetricLabelvalue in interface MetricLabelspanData - The span data from which to derive the label valueCopyright © 2017–2018 OpenTracing. All rights reserved.