From 238e71026597c6ce9239f2cced1460e98bd211e5 Mon Sep 17 00:00:00 2001 From: Ryan Martin Date: Fri, 25 Oct 2024 15:21:39 +0700 Subject: [PATCH] refactor: make trace and metrics enabled by default --- common/docker/service/nakama.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/docker/service/nakama.go b/common/docker/service/nakama.go index 0372ca2..3fb60c4 100644 --- a/common/docker/service/nakama.go +++ b/common/docker/service/nakama.go @@ -37,7 +37,7 @@ func Nakama(cfg *config.Config) Service { traceEnabled := cfg.DockerEnv["NAKAMA_TRACE_ENABLED"] if traceEnabled == "" || !cfg.Telemetry { - traceEnabled = "false" + traceEnabled = "true" } traceSampleRate := cfg.DockerEnv["NAKAMA_TRACE_SAMPLE_RATE"] @@ -45,7 +45,7 @@ func Nakama(cfg *config.Config) Service { traceSampleRate = "0.6" } - metricsEnabled := false + metricsEnabled := true if cfg.Telemetry { cfgMetricsEnabled, err := strconv.ParseBool(cfg.DockerEnv["NAKAMA_METRICS_ENABLED"]) if err == nil {