Interface MetricsSubscriber

All Superinterfaces:
Flow.Subscriber<MetricDataPoint>

public interface MetricsSubscriber extends Flow.Subscriber<MetricDataPoint>
A Flow.Subscriber for OpenTelemetry MetricDataPoint records.
  • Method Details

    • onNext

      void onNext(MetricDataPoint dataPoint)
      Method invoked for each data point of each metric in an OTLP packet. If this method throws an exception the subscription may be cancelled.
      Specified by:
      onNext in interface Flow.Subscriber<MetricDataPoint>