@NotThreadSafe public interface MetricCollector
| Modifier and Type | Method and Description |
|---|---|
MetricCollection |
collect()
Return the collected metrics.
|
static MetricCollector |
create(String name) |
MetricCollector |
createChild(String name)
Create a child of this metric collector.
|
String |
name() |
<T> void |
reportMetric(SdkMetric<T> metric,
T data)
Report a metric.
|
String name()
<T> void reportMetric(SdkMetric<T> metric, T data)
MetricCollector createChild(String name)
name - The name of the child collector.MetricCollection collect()
Calling collect() prevents further invocations of reportMetric(SdkMetric, Object).
static MetricCollector create(String name)
Copyright © 2020. All rights reserved.