Interface MetricsPublisher


public interface MetricsPublisher
Safe metrics publisher exposed to application lifecycle code.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a no-op publisher.
    void
    record(String name, long value, Map<String,String> tags)
    Publishes one metric sample.
  • Method Details

    • record

      void record(String name, long value, Map<String,String> tags)
      Publishes one metric sample.
      Parameters:
      name - metric name
      value - metric value
      tags - safe tags
    • noop

      static MetricsPublisher noop()
      Returns a no-op publisher.
      Returns:
      no-op publisher