Merge branch 'wasaga/telemetry-refactor-reporter' into wasaga/telemetry-converter-1

This commit is contained in:
Denis Mishin 2024-05-30 16:41:05 -04:00
commit 7f80c0a8d6
3 changed files with 72 additions and 19 deletions

View file

@ -143,7 +143,7 @@ func (c *controller) runMetricsReporterLeased(ctx context.Context, client databr
return c.Str("service", "zero-reporter")
})
return c.api.ReportMetrics(ctx,
return c.api.ReportPeriodicMetrics(ctx,
reporter.WithCollectInterval(time.Hour),
reporter.WithMetrics(analytics.Metrics(func() databroker.DataBrokerServiceClient { return client })...),
)