feat: allow service_name override (#112875)
This commit is contained in:
1 parent
6b2b9bd7c2
commit
2b9c138d7e
1 file changed
+6
@@ -92,6 +92,12 @@ func ParseTracingConfig(cfg *setting.Cfg) (*TracingConfig, error) {
|
||||
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
|
||||
sampler := section.Key("sampler_type").MustString("")
|
||||
if sampler != "" {
|
||||
|
||||
Reference in new issue
Block a user