Skip to content

Commit

Permalink
refactor: make trace and metrics enabled by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rmrt1n committed Oct 25, 2024
1 parent 333902f commit 238e710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/docker/service/nakama.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ 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"]
if traceSampleRate == "" {
traceSampleRate = "0.6"
}

metricsEnabled := false
metricsEnabled := true
if cfg.Telemetry {
cfgMetricsEnabled, err := strconv.ParseBool(cfg.DockerEnv["NAKAMA_METRICS_ENABLED"])
if err == nil {
Expand Down

0 comments on commit 238e710

Please # to comment.