com.twitter.finagle

stats

package stats

These stats are scoped to com.twitter.finagle.stats for historical reasons.

They used to be in the finagle-core package, although we moved them because we found they didn't depend on anything finagle-specific. To ease the transition, we kept the namespace.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. stats
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class AbstractStatsReceiver extends StatsReceiver

  2. class BlacklistStatsReceiver extends StatsReceiver

    A blacklisting StatsReceiver.

    A blacklisting StatsReceiver. If the name for a metric is found to be blacklisted, nothing is recorded.

  3. class CategorizingExceptionStatsHandler extends ExceptionStatsHandler

    Basic implementation of exception stat recording that allows exceptions to be categorised and optional rollup.

  4. trait Counter extends AnyRef

    A writeable Counter.

    A writeable Counter. Only sums are kept of Counters. An example Counter is "number of requests served".

  5. trait ExceptionStatsHandler extends AnyRef

    Exception Stats Recorder.

  6. trait Gauge extends AnyRef

    Exposes the value of a function.

    Exposes the value of a function. For example, one could add a gauge for a computed health metric.

  7. class InMemoryStatsReceiver extends StatsReceiver

    In-memory stats receiver for testing.

  8. abstract class NameTranslatingStatsReceiver extends StatsReceiver

    A StatsReceiver receiver proxy that translates all counter, stat, and gauge names according to a translate function.

  9. class NullStatsReceiver extends StatsReceiver

    A no-op StatsReceiver.

    A no-op StatsReceiver. Metrics are not recorded, making this receiver useful in unit tests and as defaults in situations where metrics are not strictly required.

  10. trait ReadableCounter extends Counter

  11. trait ReadableStat extends Stat

  12. class RollupStatsReceiver extends StatsReceiver with Proxy

    A RollupStatsReceiver reports stats on multiple Counter/Stat/Gauge based on the sequence of names you pass.

    A RollupStatsReceiver reports stats on multiple Counter/Stat/Gauge based on the sequence of names you pass. e.g. counter("errors", "clientErrors", "java_net_ConnectException").incr() will actually increment those three counters: - "/errors" - "/errors/clientErrors" - "/errors/clientErrors/java_net_ConnectException"

  13. trait Stat extends AnyRef

    An append-only collection of time-series data.

    An append-only collection of time-series data. Example Stats are "queue depth" or "query width in a stream of requests".

  14. trait StatsReceiver extends AnyRef

    An interface for recording metrics.

    An interface for recording metrics. Named Counters, Stats, and Gauges can be accessed through the corresponding methods of this class.

    See also

    StatsReceivers for a Java-friendly API.

  15. trait StatsReceiverProxy extends StatsReceiver

  16. trait StatsReceiverWithCumulativeGauges extends StatsReceiver

Value Members

  1. object BroadcastCounter

    BroadcastCounter is a helper object that create a Counter wrapper around multiple Counters (n).

    BroadcastCounter is a helper object that create a Counter wrapper around multiple Counters (n). For performance reason, we have specialized cases if n == (0, 1, 2, 3 or 4)

  2. object BroadcastStat

    BroadcastStat is a helper object that create a Counter wrapper around multiple Stats (n).

    BroadcastStat is a helper object that create a Counter wrapper around multiple Stats (n). For performance reason, we have specialized cases if n == (0, 1, 2, 3 or 4)

  3. object BroadcastStatsReceiver

    BroadcastStatsReceiver is a helper object that create a StatsReceiver wrapper around multiple StatsReceivers (n).

  4. object ExceptionStatsHandler

    API for deciding where request exceptions are reported in stats.

    API for deciding where request exceptions are reported in stats. Typical implementations may report any cancellations or validation errors separately so success rate can from valid non cancelled requests.

  5. object JStats

    Stat utility methods for ease of use from java.

  6. object NullStatsReceiver extends NullStatsReceiver

  7. object Stat

    Helpers for working with histograms.

    Helpers for working with histograms. Java-friendly versions can be found in com.twitter.finagle.stats.JStats.

  8. object StatsReceiver

  9. object StatsReceivers

    StatsReceiver utility methods for ease of use from java.

Inherited from AnyRef

Inherited from Any

Ungrouped