Files
ocis/services/proxy/pkg/config/debug.go
T

9 lines
616 B
Go
Raw Normal View History

package config
// Debug defines the available debug configuration.
type Debug struct {
2022-05-18 09:47:02 +02:00
Addr string `yaml:"addr" env:"PROXY_DEBUG_ADDR" desc:"Bind address of the debug server, where metrics, health, config and debug endpoints will be exposed."`
2022-07-06 14:25:40 +02:00
Token string `mask:"password" yaml:"token" env:"PROXY_DEBUG_TOKEN" desc:"Token to secure the metrics endpoint."`
Pprof bool `yaml:"pprof" env:"PROXY_DEBUG_PPROF" desc:"Enables pprof, which can be used for profiling."`
2022-06-14 13:17:24 +02:00
Zpages bool `yaml:"zpages" env:"PROXY_DEBUG_ZPAGES" desc:"Enables zpages, which can be used for collecting and viewing in-memory traces."`
}