From ede125a4f335b05ee61cd58e37743b1456b49b61 Mon Sep 17 00:00:00 2001 From: Adil Hafeez Date: Tue, 8 Oct 2024 17:15:40 -0700 Subject: [PATCH] ensure that tracing is optional in arch_config (#149) --- arch/envoy.template.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/envoy.template.yaml b/arch/envoy.template.yaml index 30f13713..4dba952c 100644 --- a/arch/envoy.template.yaml +++ b/arch/envoy.template.yaml @@ -14,7 +14,7 @@ static_resources: - name: envoy.filters.network.http_connection_manager typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager - {% if arch_tracing.random_sampling > 0 %} + {% if "random_sampling" in arch_tracing and arch_tracing["random_sampling"] > 0 %} generate_request_id: true tracing: provider: @@ -95,7 +95,7 @@ static_resources: - name: envoy.filters.network.http_connection_manager typed_config: "@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager - {% if arch_tracing.random_sampling > 0 %} + {% if "random_sampling" in arch_tracing and arch_tracing["random_sampling"] > 0 %} generate_request_id: true tracing: provider: @@ -289,7 +289,7 @@ static_resources: port_value: 11000 hostname: arch_internal -{% if arch_tracing.random_sampling > 0 %} +{% if "random_sampling" in arch_tracing and arch_tracing["random_sampling"] > 0 %} - name: opentelemetry_collector type: STRICT_DNS dns_lookup_family: V4_ONLY