luci: go.chromium.org/luci/common/tsmon/registry Index | Files

package registry

import "go.chromium.org/luci/common/tsmon/registry"

Package registry holds a map of all metrics registered by the process.

This map is global and it is populated during init() time, when individual metrics are defined.

Index

Package Files

registry.go

func Add Uses

func Add(m types.Metric)

Add adds a metric to the metric registry.

Panics if a metric with such name is already defined.

func Iter Uses

func Iter(cb func(m types.Metric))

Iter calls a callback for each registered metric.

Metrics are visited in no particular order. The callback must not modify the registry.

Package registry imports 3 packages (graph) and is imported by 4 packages. Updated 2018-12-17. Refresh now. Tools for package owners.