Interface ExemplarFilter


public interface ExemplarFilter
Exemplar filters are used to pre-filter measurements before attempting to store them in a reservoir (DoubleExemplarReservoir, LongExemplarReservoir.
Since:
1.56.0
See Also:
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    A filter which makes no measurements eligible for being an exemplar.
    A filter which makes all measurements eligible for being an exemplar.
    A filter that only accepts measurements where there is a Span in Context that is being sampled.
  • Method Details

    • traceBased

      static ExemplarFilter traceBased()
      A filter that only accepts measurements where there is a Span in Context that is being sampled.
    • alwaysOn

      static ExemplarFilter alwaysOn()
      A filter which makes all measurements eligible for being an exemplar.
    • alwaysOff

      static ExemplarFilter alwaysOff()
      A filter which makes no measurements eligible for being an exemplar.