Tracing: Add `Insecure` to `NewOTLPTracingConfig` (#103174)

This commit is contained in:
Gabriel MABILLE 2025-04-01 17:34:42 +02:00 committed by GitHub
parent ae73dee220
commit 2d89b16d7e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -49,7 +49,7 @@ func NewJaegerTracingConfig(address string, propagation string) (*TracingConfig,
return cfg, nil
}
func NewOTLPTracingConfig(address string, propagation string) (*TracingConfig, error) {
func NewOTLPTracingConfig(address string, propagation string, insecure bool) (*TracingConfig, error) {
if address == "" {
return nil, fmt.Errorf("address cannot be empty")
}
@ -58,6 +58,7 @@ func NewOTLPTracingConfig(address string, propagation string) (*TracingConfig, e
cfg.enabled = otlpExporter
cfg.Address = address
cfg.Propagation = propagation
cfg.Insecure = insecure
return cfg, nil
}