Secondary constructor which accepts a StatsReceiver.
Secondary constructor which accepts a StatsReceiver. The ThriftResponseClassifier is defaulted to ThriftResponseClassifier.ThriftExceptionsAsFailures.
the com.twitter.finagle.stats.StatsReceiver to which to record stats.
the com.twitter.finagle.stats.StatsReceiver to which to record stats.
a ThriftResponseClassifier used to determine when a response is successful or not.
Tracks "per method" statistics scoped under
per_method_stats/<method>
including:Example stats for a successful request to a method named
foo
:Example stats, for a failed request to a method named
foo
:It is expected that this Filter is inserted ABOVE the ExceptionMappingFilter in a given filter chain, e.g.,
StatsFilter.andThen(ExceptionMappingFilter)
. For the response flow, StatsFilter would happen AFTER ExceptionMappingFilter and calculate mapped result.