Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Reporter ¶
type Reporter struct {
// contains filtered or unexported fields
}
Define StatsReporter Structure, which implements the OpenCensus Producer interface
func (*Reporter) Read ¶
func (r *Reporter) Read() []*metricdata.Metric
Read implements the OpenCensus Producer interface
func (*Reporter) Report ¶
func (r *Reporter) Report(list ReportingList)
Report The Sarama Metrics (go-metrics) Via Knative / OpenCensus Metrics
type ReportingItem ¶
type ReportingItem = map[string]interface{}
Some type aliases for the otherwise unwieldy metric collection map-of-maps-to-interfaces
type ReportingList ¶
type ReportingList = map[string]ReportingItem
type StatsReporter ¶
type StatsReporter interface { Report(ReportingList) Shutdown() }
StatsReporter defines the interface for sending ingress metrics.
func NewStatsReporter ¶
func NewStatsReporter(log *zap.Logger) StatsReporter
StatsReporter Constructor
Click to show internal directories.
Click to hide internal directories.