Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
Add /healthz to the ignored requests (googleapis#2121)
Browse files Browse the repository at this point in the history
  • Loading branch information
Diego d'Ursel authored and dazuma committed Jun 8, 2018
1 parent f8108e8 commit 9f1d96c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions google-cloud-trace/lib/google/cloud/trace/time_sampler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,16 @@ 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.
#
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.
Expand Down

0 comments on commit 9f1d96c

Please sign in to comment.