Module brave
Package brave.sampler

Class ParameterizedSampler.Rule<P>

  • Enclosing class:
    ParameterizedSampler<P>

    public abstract static class ParameterizedSampler.Rule<P>
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected Rule​(float rate)  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean matches​(P parameters)
      Returns true if this rule matches the input parameters
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Rule

        protected Rule​(float rate)
        Parameters:
        rate - percentage of requests to start traces for. 1.0 is 100%
    • Method Detail

      • matches

        public abstract boolean matches​(P parameters)
        Returns true if this rule matches the input parameters