Tracing: Only enable traces to profiles for api servers for now (#89126)
This commit is contained in:
@@ -272,7 +272,9 @@ func (ots *TracingService) initOpentelemetryTracer() error {
|
||||
}
|
||||
}
|
||||
|
||||
tp = NewProfilingTracerProvider(tp)
|
||||
if ots.cfg.ProfilingIntegration {
|
||||
tp = NewProfilingTracerProvider(tp)
|
||||
}
|
||||
|
||||
// Register our TracerProvider as the global so any imported
|
||||
// instrumentation in the future will default to using it
|
||||
|
||||
@@ -21,6 +21,8 @@ type TracingConfig struct {
|
||||
|
||||
ServiceName string
|
||||
ServiceVersion string
|
||||
|
||||
ProfilingIntegration bool
|
||||
}
|
||||
|
||||
func ProvideTracingConfig(cfg *setting.Cfg) (*TracingConfig, error) {
|
||||
|
||||
Reference in New Issue
Block a user