Tracing: chore make insecure option configurable (#99236)

* Tracing: chore: make insecure option configurable

In case of insecure set to false, default system cert pool will be used to create otlpgrpc client.

* test: add tracing/insecure config checks

This is to verify whether insecure configuration is properly parsed.

* chore: update configura Grafana docs with new setting

* chore: also update comment in the ini files

---------

Co-authored-by: Matheus Macabu <macabu.matheus@gmail.com>
This commit is contained in:
Emre Yazıcı
2025-03-27 17:37:23 +01:00
committed by GitHub
parent 38c96c4c7d
commit 7aa71aa734
6 changed files with 40 additions and 1 deletions

View File

@ -24,6 +24,7 @@ type TracingConfig struct {
ServiceVersion string
ProfilingIntegration bool
Insecure bool
}
func ProvideTracingConfig(cfg *setting.Cfg) (*TracingConfig, error) {
@ -123,6 +124,7 @@ func ParseTracingConfig(cfg *setting.Cfg) (*TracingConfig, error) {
tc.enabled = otlpExporter
}
tc.Propagation = section.Key("propagation").MustString("")
tc.Insecure = section.Key("insecure").MustBool(true)
return tc, nil
}