From cf90b898f4e182815d0720c868a1279a4966b8fe Mon Sep 17 00:00:00 2001 From: Kevin Lin Date: Thu, 4 Jan 2024 15:34:55 -0800 Subject: [PATCH] feat: enable new relic log decorations (#8616) This enables local decorating of logs when using a new relic. It can be used when you use a log forwarding agent to do additional enrichment on APM logs before forwarding to the new relic. --- config/newrelic.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/newrelic.yml b/config/newrelic.yml index f07ea34e6..847b693da 100644 --- a/config/newrelic.yml +++ b/config/newrelic.yml @@ -30,7 +30,7 @@ common: &default_settings enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_ENABLED', false) %> forwarding: # If `true`, the agent captures log records emitted by this application. - enabled: true + enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_FORWARDING_ENABLED', true) %> # Defines the maximum number of log records to buffer in memory at a time. max_samples_stored: 30000 metrics: @@ -40,7 +40,7 @@ common: &default_settings # If `true`, the agent decorates logs with metadata to link to entities, hosts, traces, and spans. # This requires a log forwarder to send your log files to New Relic. # This should not be used when forwarding is enabled. - enabled: false + enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_DECORATING_ENABLED', false) %> # Environment-specific settings are in this section.