package producer
import "go.opencensus.io/metric/producer"
Index ¶
Functions ¶
func Add ¶
func Add(producer Producer)
Add adds the producer to the manager if it is not already present. The manager maintains the list of active producers. It provides this list to a reader to read metrics from each producer and then export.
func Delete ¶
func Delete(producer Producer)
Delete deletes the producer from the manager if it is present.
Types ¶
type Producer ¶
type Producer interface { // Read should return the current values of all metrics supported by this // metric provider. // The returned metrics should be unique for each combination of name and // resource. Read() []*metricdata.Metric }
Producer is a source of metrics.
func GetAll ¶
func GetAll() []Producer
GetAll returns a slice of all producer currently registered with the manager. For each call it generates a new slice. The slice should not be cached as registration may change at any time. It is typically called periodically by exporter to read metrics from the producers.
Source Files ¶
manager.go producer.go
- Version
- v0.19.1
- Published
- Mar 4, 2019
- Platform
- js/wasm
- Imports
- 2 packages
- Last checked
- 3 hours ago –
Tools for package owners.