Skip to content

Commit

Permalink
Set configuration again
Browse files Browse the repository at this point in the history
  • Loading branch information
marctc committed May 6, 2024
1 parent c01e601 commit 657bc98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/internal/export/alloy/traces_otel.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import (
"go.opentelemetry.io/collector/config/configgrpc"
"go.opentelemetry.io/collector/config/confighttp"
"go.opentelemetry.io/collector/config/configtelemetry"
"go.opentelemetry.io/collector/config/configtls"
"go.opentelemetry.io/collector/exporter"
"go.opentelemetry.io/collector/exporter/otlpexporter"
"go.opentelemetry.io/collector/exporter/otlphttpexporter"
Expand Down Expand Up @@ -107,6 +108,10 @@ func getTracesExporter(ctx context.Context, cfg otel.TracesConfig, ctxInfo *glob
}
config.ClientConfig = configgrpc.ClientConfig{
Endpoint: endpoint,
TLSSetting: configtls.ClientConfig{
Insecure: true, // TODO: make this configurable
InsecureSkipVerify: cfg.InsecureSkipVerify,
},
}
set := getTraceSettings(ctxInfo, cfg, t)
return factory.CreateTracesExporter(ctx, set, config)
Expand Down

0 comments on commit 657bc98

Please sign in to comment.