Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Po-Yao Chen committed Nov 13, 2024
1 parent 8ee8e8c commit 4832033
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions otellib/otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@ func InitOTelSDK(ctx context.Context, collectorEndpoint string, tlsConfig *tls.C
// Set up an OTel exporter for metrics.
var opts []otlpmetrichttp.Option
opts = append(opts, otlpmetrichttp.WithEndpoint(collectorEndpoint))
opts = append(opts, otlpmetrichttp.WithInsecure())
//opts = append(opts, otlpmetrichttp.WithTLSClientConfig(tlsConfig))
opts = append(opts, otlpmetrichttp.WithTLSClientConfig(tlsConfig))

metricExporter, err := otlpmetrichttp.New(ctx, opts...)
if err != nil {
Expand Down

0 comments on commit 4832033

Please sign in to comment.