Documentation ¶
Overview ¶
Package metrics contains utilities for exporting metrics.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Exporter ¶
type Exporter interface { WriteBool(name string, value bool) WriteInt(name string, cumulative bool, value int) WriteInt64(name string, cumulative bool, value int64) WriteIntDistribution(name string, cumulative bool, values []int) WriteFloat64(name string, cumulative bool, value float64) WriteFloat64Distribution(name string, cumulative bool, values []float64) }
Exporter defines a generic metric exporter interface used in this application.
func NewLogsBasedExporter ¶
func NewLogsBasedExporter(log *zap.SugaredLogger) Exporter
NewLogsBasedExporter creates a new logs based importer from a logger.
func NewLogsBasedFromContext ¶
NewLogsBasedFromContext creates a logs based metrics exporter.
type ExporterFromContext ¶
ExporterFromContext defines a function to create a new exporter based on the current context.
Click to show internal directories.
Click to hide internal directories.