public interface ExportableMetric extends Keyed
ExportableMetric interface represents a metric that can be exported. It extends the
Keyed interface, which provides a key for the metric.
This interface provides methods to retrieve the underlying metric, resource, and instrumentation scope associated with the exportable metric.
| Modifier and Type | Method and Description |
|---|---|
static io.opentelemetry.proto.metrics.v1.MetricsData |
buildMetricsData(ExportableMetric exportable)
Construct a
MetricsData by binding the underlying Metric to the
Resource and InstrumentationScope in this ExportableMetric. |
static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest |
buildRequest(Collection<ExportableMetric> exportables)
Construct a
ExportMetricsServiceRequest by binding the underlying Metric to the
Resource and InstrumentationScope in this ExportableMetric. |
io.opentelemetry.proto.common.v1.InstrumentationScope |
instrumentationScope() |
io.opentelemetry.proto.metrics.v1.Metric |
metric() |
io.opentelemetry.proto.resource.v1.Resource |
resource() |
io.opentelemetry.proto.metrics.v1.ResourceMetrics |
resourceMetrics() |
static io.opentelemetry.proto.metrics.v1.MetricsData buildMetricsData(ExportableMetric exportable)
MetricsData by binding the underlying Metric to the
Resource and InstrumentationScope in this ExportableMetric.static io.opentelemetry.proto.collector.metrics.v1.ExportMetricsServiceRequest buildRequest(Collection<ExportableMetric> exportables)
ExportMetricsServiceRequest by binding the underlying Metric to the
Resource and InstrumentationScope in this ExportableMetric.io.opentelemetry.proto.metrics.v1.Metric metric()
Metric associated with this ExportableMetricio.opentelemetry.proto.resource.v1.Resource resource()
Resource associated with this ExportableMetricio.opentelemetry.proto.common.v1.InstrumentationScope instrumentationScope()
InstrumentationScope associated with this ExportableMetricio.opentelemetry.proto.metrics.v1.ResourceMetrics resourceMetrics()
ResourceMetrics associated with this ExportableMetric