Skip to content

Commit e4d7138

Browse files
authored
pass opts to otlpmetrichttp.New()
1 parent ad53170 commit e4d7138

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/examples/agent/agent/metricreporter.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ func NewMetricReporter(
7272
opts = append(opts, otlpmetrichttp.WithInsecure())
7373
}
7474

75-
metricExporter, err := otlpmetrichttp.New(context.Background())
75+
metricExporter, err := otlpmetrichttp.New(context.Background(), opts...)
7676
if err != nil {
7777
err := fmt.Errorf("failed to initialize stdoutmetric export pipeline: %v", err)
7878
return nil, err

0 commit comments

Comments
 (0)