Interface MetricName


@Safe public interface MetricName
  • Method Details

    • safeName

      @Safe @Safe String safeName()
      General/abstract measure (e.g. server.response-time).

      Names must be Safe to log.

    • safeTags

      @Safe @Safe SortedMap<@Safe String, @Safe String> safeTags()
      Metadata/coordinates for where a particular measure came from. Used for filtering and grouping.

      All tags and keys must be Safe to log.

    • builder

      static MetricName.Builder builder()
    • builderWithExpectedTags

      static MetricName.PreSizedBuilder builderWithExpectedTags(int expectedTags)
      Returns an optimized builder for callers that know the number of tags upfront. Tags must be added via ImmutableMetricName.PreSizedBuilder.putSafeTags(String, String) in lexicographic key order.