Tracing: Only enable traces to profiles for api servers for now (#89126)

This commit is contained in:
Marcus Efraimsson
2024-06-12 19:36:31 +03:00
committed by GitHub
parent 636910e57e
commit 1abaa825c6
3 changed files with 6 additions and 1 deletions
@@ -109,6 +109,7 @@ func (o *TracingOptions) ApplyTo(config *genericapiserver.RecommendedConfig) err
tracingCfg.Sampler = o.SamplerType
tracingCfg.SamplerParam = o.SamplerParam
tracingCfg.SamplerRemoteURL = o.SamplingServiceURL
tracingCfg.ProfilingIntegration = true
ts, err := tracing.ProvideService(tracingCfg)
if err != nil {