From 9f1d96c022002a6dad7ee107e39aa818003164d4 Mon Sep 17 00:00:00 2001 From: Diego d'Ursel Date: Fri, 8 Jun 2018 23:33:56 +0200 Subject: [PATCH] Add /healthz to the ignored requests (#2121) --- google-cloud-trace/lib/google/cloud/trace/time_sampler.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/google-cloud-trace/lib/google/cloud/trace/time_sampler.rb b/google-cloud-trace/lib/google/cloud/trace/time_sampler.rb index 032a2ad6b727..0af6e5dd5cd0 100644 --- a/google-cloud-trace/lib/google/cloud/trace/time_sampler.rb +++ b/google-cloud-trace/lib/google/cloud/trace/time_sampler.rb @@ -30,7 +30,8 @@ module Trace # # 1. It allows you to blacklist certain URI paths that should never be # traced. For example, the Google App Engine health check request - # path `/_ah/health` is blacklisted by default. + # path `/_ah/health` is blacklisted by default. Kubernetes default + # health check `/healthz` is also ignored. # 2. It spaces samples out by delaying a minimum time between each # sample. This enforces a maximum QPS for this Ruby process. # @@ -38,7 +39,7 @@ class TimeSampler ## # Default list of paths for which to disable traces. Currently includes # App Engine Flex health checks. - DEFAULT_PATH_BLACKLIST = ["/_ah/health"].freeze + DEFAULT_PATH_BLACKLIST = ["/_ah/health", "/healthz"].freeze ## # Create a TimeSampler for the given QPS.