Skip to content
This repository was archived by the owner on Oct 3, 2023. It is now read-only.

Commit 0a55998

Browse files
tchapbogdandrutu
authored andcommitted
Use NewReader for metrics reader init (#195)
This must be used for the reader to be initialized properly. Fixes #170
1 parent 321e549 commit 0a55998

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

stats.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func newStatsExporter(o Options) (*statsExporter, error) {
145145

146146
func (e *statsExporter) startMetricsReader() error {
147147
e.initReaderOnce.Do(func() {
148-
e.ir, _ = metricexport.NewIntervalReader(&metricexport.Reader{}, e)
148+
e.ir, _ = metricexport.NewIntervalReader(metricexport.NewReader(), e)
149149
})
150150
e.ir.ReportingInterval = e.o.ReportingInterval
151151
return e.ir.Start()

0 commit comments

Comments
 (0)