ServiceIface to which to send requests.
if function returns true, the request will be forwarded.
forward the request after the initial service has processed the request instead of concurrently.
keeps stats for requests forwarded, skipped and failed.
if function returns true, the request will be forwarded.
if function returns true, the request will be forwarded.
The com.twitter.finagle.Filter.TypeAgnostic filter chain works on a Service[T, Rep].
The com.twitter.finagle.Filter.TypeAgnostic filter chain works on a Service[T, Rep]. The method name is extracted from the local context.
- the request type
- the response type param of the service call.
- the request to send to dark service
a com.twitter.util.Future over the Rep type.
keeps stats for requests forwarded, skipped and failed.
keeps stats for requests forwarded, skipped and failed.
An implementation of com.twitter.finagle.exp.AbstractDarkTrafficFilter which extends com.twitter.finagle.Filter.TypeAgnostic and thus works in a Finatra ThriftRouter filter chain. This differs from the com.twitter.finagle.exp.DarkTrafficFilter in that this class is typed to work like other ThriftFilters as agnostic to types until apply() is invoked.
- the type of the Service to take dark traffic.
This Filter only works for Scala services. Java users should use the
JavaDarkTrafficFilter
.com.twitter.finagle.exp.AbstractDarkTrafficFilter