Class ContextExportableMetric

java.lang.Object
io.confluent.telemetry.emitter.ContextExportableMetric
All Implemented Interfaces:
ExportableMetric, Keyed
Direct Known Subclasses:
ClientExportableMetric

public class ContextExportableMetric extends Object implements ExportableMetric
  • Constructor Details

    • ContextExportableMetric

      public ContextExportableMetric(io.opentelemetry.proto.metrics.v1.Metric metric, MetricKey key, Context context)
  • Method Details

    • key

      public MetricKey key()
      Specified by:
      key in interface Keyed
    • metric

      public io.opentelemetry.proto.metrics.v1.Metric metric()
      Specified by:
      metric in interface ExportableMetric
      Returns:
      the Metric associated with this ContextExportableMetric
    • resource

      public io.opentelemetry.proto.resource.v1.Resource resource()
      Specified by:
      resource in interface ExportableMetric
      Returns:
      the Resource associated with this ContextExportableMetric
    • instrumentationScope

      public io.opentelemetry.proto.common.v1.InstrumentationScope instrumentationScope()
      Specified by:
      instrumentationScope in interface ExportableMetric
      Returns:
      the InstrumentationScope associated with this ContextExportableMetric
    • resourceMetrics

      public io.opentelemetry.proto.metrics.v1.ResourceMetrics resourceMetrics()
      Specified by:
      resourceMetrics in interface ExportableMetric
      Returns:
      the ResourceMetrics associated with this ContextExportableMetric