public interface MetricRegistry
Modifier and Type | Method and Description |
---|---|
void |
addSpan(SpanBuilder spanBuilder)
Add and log a
Span . |
char |
getDelimiter()
Returns the global delimiter.
|
default String |
getMetricQueryServiceGatewayRpcAddress()
Returns the gateway of the
MetricQueryService or null, if none is started. |
int |
getNumberReporters()
Returns the number of registered reporters.
|
ScopeFormats |
getScopeFormats()
Returns the scope formats.
|
void |
register(Metric metric,
String metricName,
AbstractMetricGroup group)
Registers a new
Metric with this registry. |
void |
unregister(Metric metric,
String metricName,
AbstractMetricGroup group)
Un-registers the given
Metric with this registry. |
char getDelimiter()
int getNumberReporters()
void addSpan(SpanBuilder spanBuilder)
Span
.void register(Metric metric, String metricName, AbstractMetricGroup group)
Metric
with this registry.metric
- the metric that was addedmetricName
- the name of the metricgroup
- the group that contains the metricvoid unregister(Metric metric, String metricName, AbstractMetricGroup group)
Metric
with this registry.metric
- the metric that should be removedmetricName
- the name of the metricgroup
- the group that contains the metricScopeFormats getScopeFormats()
@Nullable default String getMetricQueryServiceGatewayRpcAddress()
MetricQueryService
or null, if none is started.Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.