pprof env

This commit is contained in:
nquidox 2026-03-01 00:05:55 +03:00
parent 8395cf71b4
commit d90682e183
3 changed files with 4 additions and 1 deletions

View file

@ -7,6 +7,7 @@ import (
)
type Config struct {
PprofEnabled bool
LogLevel string
NumCPUs int
CheckPeriod int
@ -46,6 +47,7 @@ type MetricsConfig struct {
func NewConfig() *Config {
return &Config{
PprofEnabled: getEnvBool("PPROF_ENABLED", true),
LogLevel: getEnv("APP_LOG_LEVEL", "debug"),
NumCPUs: getEnvInt("APP_NUMCPUS", -1),
CheckPeriod: getEnvInt("APP_CHECK_PERIOD", 6),