mirror of
https://github.com/grafana/grafana.git
synced 2025-07-30 20:52:34 +08:00
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:
@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user