diff --git a/main.go b/main.go index d9a5b7c..2e38ddf 100644 --- a/main.go +++ b/main.go @@ -120,7 +120,7 @@ func main() { if opentelemetry.IsEnabled() { collectorAddress := c.OpenTelemetryEndpoint spanExporter := opentelemetry.InitSpanExporter(ctx, collectorAddress) - metricExporter := opentelemetry.InitOPTLMetricExporter(ctx, collectorAddress, .MetricsExportInterval) + metricExporter := opentelemetry.InitOPTLMetricExporter(ctx, collectorAddress, c.MetricsExportInterval) o := opentelemetry.Init(ctx, spanExporter, metricExporter, c.Name) defer func() { if err = o.Close(); err != nil {