From b2df1b768366a40865bca587b375b46b71340cbf Mon Sep 17 00:00:00 2001 From: Nikita Skrynnik Date: Mon, 25 Sep 2023 11:32:00 +1100 Subject: [PATCH] minor fix Signed-off-by: Nikita Skrynnik --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 {