From dc28305c9f83a46f3baa5edab4f55bba9400c966 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Thu, 28 Apr 2022 08:48:57 -0600 Subject: [PATCH] Assign tracing-related environment variables in Kubernetes Co-Authored-By: Antonio Scandurra --- crates/collab/k8s/environments/production.sh | 1 + crates/collab/k8s/environments/staging.sh | 1 + crates/collab/k8s/manifest.template.yml | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/crates/collab/k8s/environments/production.sh b/crates/collab/k8s/environments/production.sh index 331019bd40..5f71d201fb 100644 --- a/crates/collab/k8s/environments/production.sh +++ b/crates/collab/k8s/environments/production.sh @@ -1 +1,2 @@ ZED_ENVIRONMENT=production +TRACE_LEVEL=debug diff --git a/crates/collab/k8s/environments/staging.sh b/crates/collab/k8s/environments/staging.sh index 0feacbadf6..0d93902680 100644 --- a/crates/collab/k8s/environments/staging.sh +++ b/crates/collab/k8s/environments/staging.sh @@ -1 +1,2 @@ ZED_ENVIRONMENT=staging +TRACE_LEVEL=debug diff --git a/crates/collab/k8s/manifest.template.yml b/crates/collab/k8s/manifest.template.yml index f243a0adac..848d06ec49 100644 --- a/crates/collab/k8s/manifest.template.yml +++ b/crates/collab/k8s/manifest.template.yml @@ -85,6 +85,15 @@ spec: value: "1" - name: RUST_LOG value: "trace" + - name: TRACE_LEVEL + value: ${TRACE_LEVEL} + - name: HONEYCOMB_DATASET + value: "collab" + - name: HONEYCOMB_API_KEY + valueFrom: + secretKeyRef: + name: honeycomb + key: apiKey securityContext: capabilities: # FIXME - Switch to the more restrictive `PERFMON` capability.