We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad53170 commit e4d7138Copy full SHA for e4d7138
internal/examples/agent/agent/metricreporter.go
@@ -72,7 +72,7 @@ func NewMetricReporter(
72
opts = append(opts, otlpmetrichttp.WithInsecure())
73
}
74
75
- metricExporter, err := otlpmetrichttp.New(context.Background())
+ metricExporter, err := otlpmetrichttp.New(context.Background(), opts...)
76
if err != nil {
77
err := fmt.Errorf("failed to initialize stdoutmetric export pipeline: %v", err)
78
return nil, err
0 commit comments