Cribbed from: https://github.com/twitter/finagle/blob/develop/finagle-core/src/main/scala/com/twitter/finagle/service/RetryFilter.scala
Decides if a trace should be sampled.
Decides if a trace should be sampled.
Based on com.twitter.finagle.zipkin.thrift.Sampler.
This stack module is intended to enforce a total timeout on a request including all retries.
This stack module is intended to enforce a total timeout on a request including all retries. To do this it must be installed above all retry filters in the stack.
Cribbed from: https://github.com/twitter/finagle/blob/develop/finagle-core/src/main/scala/com/twitter/finagle/service/RetryFilter.scala
Copied here and modified in order to change the type of stats exported by the filter.