From 797b86630267c158f467717f117abb20b9e78a13 Mon Sep 17 00:00:00 2001 From: Nathan VanBenschoten Date: Sun, 20 Nov 2022 22:47:09 -0500 Subject: [PATCH] envutil: add GOMEMLIMIT to safeVarRegistry This commit adds the GOMEMLIMIT environment variable to the list of go runtime env vars that Cockroach will report about on the Node Diagnostics page. The original set was added in f6e2313. Since then, this is the only env var added to the go runtime. Release note: None Epic: None --- pkg/util/envutil/env.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/util/envutil/env.go b/pkg/util/envutil/env.go index 7a5285d39423..94c7dcf11c71 100644 --- a/pkg/util/envutil/env.go +++ b/pkg/util/envutil/env.go @@ -186,10 +186,12 @@ func GetEnvVarsUsed() (result []redact.RedactableString) { // the name and the value safely: the value is known to never contain // sensitive information. var safeVarRegistry = map[redact.SafeString]struct{}{ + // Go runtime. "GOGC": {}, "GODEBUG": {}, "GOMAXPROCS": {}, "GOTRACEBACK": {}, + "GOMEMLIMIT": {}, // gRPC. "GRPC_GO_LOG_SEVERITY_LEVEL": {}, "GRPC_GO_LOG_VERBOSITY_LEVEL": {},