github.com/grafana/pyroscope@v1.18.0/pkg/tracing/config.go (about) 1 package tracing 2 3 import ( 4 "flag" 5 ) 6 7 type Config struct { 8 Enabled bool `yaml:"enabled"` 9 ProfilingEnabled bool `yaml:"profiling_enabled" category:"experimental" doc:"hidden"` 10 } 11 12 func (cfg *Config) RegisterFlags(f *flag.FlagSet) { 13 f.BoolVar(&cfg.Enabled, "tracing.enabled", true, "Set to false to disable tracing.") 14 f.BoolVar(&cfg.ProfilingEnabled, "tracing.profiling-enabled", false, "Set to true to enable profiling integration.") 15 }