Documentation ¶
Overview ¶
Package l2met provides a basic log-based metrics provider for cases where a real provider is not available.
Index ¶
- type Provider
- func (p *Provider) Flush() error
- func (*Provider) NewCardinalityCounter(string) xmetrics.CardinalityCounter
- func (p *Provider) NewCounter(name string) metrics.Counter
- func (p *Provider) NewGauge(name string) metrics.Gauge
- func (p *Provider) NewHistogram(name string, buckets int) metrics.Histogram
- func (p *Provider) Run(ctx context.Context) error
- func (p *Provider) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider provides constructors for creating, tracking, and logging metrics.
func New ¶
func New(l logrus.FieldLogger) *Provider
New returns a metrics provider for constructing and tracing metrics to report.
func (*Provider) NewCardinalityCounter ¶
func (*Provider) NewCardinalityCounter(string) xmetrics.CardinalityCounter
NewCardinalityCounter implements the heroku/x metrics Provider interface. It is not implemented for the log-based provider.
func (*Provider) NewCounter ¶
NewCounter implements Provider.
func (*Provider) NewHistogram ¶
NewHistogram implements Provider.
Click to show internal directories.
Click to hide internal directories.