package
0.0.1-alpha.2
Repository: https://github.com/yext/fsgo.git
Documentation: pkg.go.dev

# README

Metrics Reporting Helper

A thin wrapper around go-metrics that streamlines setup and a few common uses (tracking event rates and timings) and exports to graphite.

Usage

  r := report.NewRecorder().ReportTo("graphite-collector:2170", "foobar.baz")
  r.Inc("request")
  r.Time("handler", 5*time.Second)

Default Recorder

Alternately, rather than pass around a Recorder instance, you can also set a configured Recorder as the default during startup, then use helpers elsewhere that just report to the default recorder.

  report.NewRecorder().ReportTo("graphite-collector:2170", "foobar.baz").SetAsDefault()
  ...
  report.Inc("request")
  report.Time("handler", 5*time.Second)

Authors

# Functions

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

No description provided by the author
No description provided by the author
An alternate export format that formats percentile paths more like twitter's ostrich.

# Structs

No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author