stats

package
v1.35.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

MetricKey is called to generate the statsd key for a given metric and tags.

Functions

func DefaultMetricPrefix

func DefaultMetricPrefix(name string, tags map[string]string) string

DefaultMetricPrefix is the default mapping for metrics to statsd keys. It uses a "tchannel" prefix for all stats.

func MetricWithPrefix

func MetricWithPrefix(prefix, name string, tags map[string]string) string

MetricWithPrefix is the default mapping for metrics to statsd keys.

func NewStatsdReporter

func NewStatsdReporter(addr, prefix string) (tchannel.StatsReporter, error)

NewStatsdReporter returns a StatsReporter that reports to statsd on the given addr.

func NewStatsdReporterClient

func NewStatsdReporterClient(client statsd.Statter) tchannel.StatsReporter

NewStatsdReporterClient returns a StatsReporter that reports stats to the given client.

func NewTallyReporter added in v1.9.0

func NewTallyReporter(scope tally.Scope) tchannel.StatsReporter

NewTallyReporter takes a tally.Scope and wraps it so it ca be used as a StatsReporter. The list of metrics emitted is documented on: https://tchannel.readthedocs.io/en/latest/metrics/ The metrics emitted are similar to YARPC, the tags emitted are: source, dest, procedure, and retry-count.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL