From c6ec7ab2db6985b735a75b91f6a6fc0f4de00a0a Mon Sep 17 00:00:00 2001 From: Andrew Dryga Date: Thu, 21 Sep 2023 14:17:28 -0600 Subject: [PATCH] Drop healthcheck traces --- terraform/modules/elixir-app/main.tf | 2 +- .../modules/elixir-app/templates/cloud-init.yaml | 11 ++++++++--- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/terraform/modules/elixir-app/main.tf b/terraform/modules/elixir-app/main.tf index 719b9df0d..46f4968d4 100644 --- a/terraform/modules/elixir-app/main.tf +++ b/terraform/modules/elixir-app/main.tf @@ -31,7 +31,7 @@ locals { }, { name = "OTLP_ENDPOINT", - value = "http://127.0.0.1:4318" + value = "http://localhost:4318" }, { name = "OTEL_RESOURCE_ATTRIBUTES" diff --git a/terraform/modules/elixir-app/templates/cloud-init.yaml b/terraform/modules/elixir-app/templates/cloud-init.yaml index e46c2edcd..9540177c2 100644 --- a/terraform/modules/elixir-app/templates/cloud-init.yaml +++ b/terraform/modules/elixir-app/templates/cloud-init.yaml @@ -27,19 +27,24 @@ write_files: resourcedetection: detectors: [gcp] timeout: 10s + filter/drophttp: + error_mode: ignore + traces: + span: + - 'attributes["http.target"] == "/healthz"' service: pipelines: traces: receivers: [otlp] - processors: [memory_limiter, batch] + processors: [memory_limiter, filter/drophttp, batch] exporters: [googlecloud] metrics: receivers: [otlp] - processors: [memory_limiter, batch] + processors: [memory_limiter, filter/drophttp, batch] exporters: [googlecloud] logs: receivers: [otlp] - processors: [memory_limiter, batch] + processors: [memory_limiter, filter/drophttp, batch] exporters: [googlecloud] - path: /etc/systemd/system/otel-collector.service