From 879da72b1062f5140f7330b93ee81a3ac393757e Mon Sep 17 00:00:00 2001 From: Vishnu Narayanan Date: Tue, 12 Nov 2024 17:28:13 +0530 Subject: [PATCH] chore: drop request/response headers from traces --- config/newrelic.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/newrelic.yml b/config/newrelic.yml index e7dfb7c7d..14561a74e 100644 --- a/config/newrelic.yml +++ b/config/newrelic.yml @@ -20,6 +20,12 @@ common: &default_settings sampling: rate: 0.1 # Sample 10% of traces instead of 100% + # Source: https://docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration/#attributes + attributes: + exclude: + - request.headers.* # Exclude request headers from traces + - response.headers.* # Exclude response headers from traces + # To disable the agent regardless of other settings, uncomment the following: agent_enabled: <%= ENV['NEW_RELIC_LICENSE_KEY'].present? && ENV.fetch('NEW_RELIC_AGENT_ENABLED', true) %>