Versions in this module Expand all Collapse all v1 v1.4.1 Nov 14, 2017 v1.4.0 Nov 13, 2017 Changes in this version + const DefaultGroup + func NewContextWithGroup(ctx context.Context, c *Group) context.Context + func WithGroup(gid GID) descOption + type Counter struct + func (c *Counter) Add(d int64) + func (c *Counter) Name() string + func (c *Counter) String() string + func (c *Counter) Value() int64 + type GID uint32 + func MustRegisterGroup(name string) GID + type Group struct + func GroupFromContext(ctx context.Context) *Group + func NewGroup(gid GID) *Group + func (g *Group) ForEach(fn func(v Metric)) + func (g *Group) GetCounter(id ID) *Counter + func (g *Group) GetTimer(id ID) *Timer + func (g *Group) Name() string + type ID uint64 + func MustRegisterCounter(name string, opts ...descOption) ID + func MustRegisterTimer(name string, opts ...descOption) ID + type Metric interface + Name func() string + type Registry struct + func NewRegistry() *Registry + func (r *Registry) MustRegisterCounter(name string, opts ...descOption) ID + func (r *Registry) MustRegisterGroup(name string) GID + func (r *Registry) MustRegisterTimer(name string, opts ...descOption) ID + func (r *Registry) NewGroup(gid GID) *Group + type Timer struct + func (t *Timer) Name() string + func (t *Timer) String() string + func (t *Timer) Time(f func()) + func (t *Timer) Update(d time.Duration) + func (t *Timer) UpdateSince(since time.Time) + func (t *Timer) Value() time.Duration