From 58d6b87a710ef3ccb905cf93a6b1edf3483d0709 Mon Sep 17 00:00:00 2001 From: Drew Brown Date: Wed, 14 Jun 2023 12:32:38 -0600 Subject: [PATCH] feat: Ignore health checks for tracing purposes Health checks tend to pollute the trace list and often cause other traces to get dropped when the appserver rate limits automatic traces. --- infra/service.tf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/infra/service.tf b/infra/service.tf index f1b12868..109fa24b 100644 --- a/infra/service.tf +++ b/infra/service.tf @@ -50,6 +50,10 @@ resource "google_cloud_run_v2_service" "server" { name = "OTEL_TRACES_EXPORTER" value = "gcp_trace" } + env { + name = "OTEL_PYTHON_EXCLUDED_URLS" + value = "healthy" + } volume_mounts { name = "cloudsql" mount_path = "/cloudsql"