mirror of https://github.com/grafana/grafana.git
feat: allow service_name override (#112875)
This commit is contained in:
parent
6b2b9bd7c2
commit
2b9c138d7e
|
|
@ -92,6 +92,12 @@ func ParseTracingConfig(cfg *setting.Cfg) (*TracingConfig, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Allow overriding service name via configuration
|
||||||
|
serviceName := section.Key("service_name").MustString("")
|
||||||
|
if serviceName != "" {
|
||||||
|
tc.ServiceName = serviceName
|
||||||
|
}
|
||||||
|
|
||||||
// if sampler_type is set in tracing.opentelemetry, we ignore the config in tracing.jaeger
|
// if sampler_type is set in tracing.opentelemetry, we ignore the config in tracing.jaeger
|
||||||
sampler := section.Key("sampler_type").MustString("")
|
sampler := section.Key("sampler_type").MustString("")
|
||||||
if sampler != "" {
|
if sampler != "" {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue