class AdaptiveSampler extends Sampler
An adaptive sampler tries to balance a global throughput goal across all operations in the current application, making the best possible effort to provide sampled traces from all operations and to satisfy all configured rules.
This sampler divides the task of balancing the load into two phases: rebalancing and adapting. Rebalancing happens every time a new operation is seen by the sampler and splits the overall throughput allocation across all operations seen so far, only taking the configured throughput goal and rules into account. Adapting happens every second and tries to adjust the sampling rate for each individual operation based on the historical behavior of the operation, the target throughput set during rebalance and take advantage of any "unused" throughput by distributing across more active operations.
- Alphabetic
- By Inheritance
- AdaptiveSampler
- Sampler
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
- new AdaptiveSampler()
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def adapt(): Unit
Uses the throughput information from all operations to update their sampling probability and optionally boost operations if there is any throughput leftover.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def decide(operation: Operation): SamplingDecision
Decides whether a trace should be sampled or not.
Decides whether a trace should be sampled or not. The provided SpanBuilder contains the information that has been gathered so far for what will become the root Span for the new Trace.
- Definition Classes
- AdaptiveSampler → Sampler
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def rebalance(): Unit
Makes the sampler update its internal state and reassign probabilities to all known operations.
Makes the sampler update its internal state and reassign probabilities to all known operations. Rebalancing only happens when new operations appear and does not take the actual operation throughput into account to assign the base throughput to each operation.
- def reconfigure(newConfig: Config): Unit
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()