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.
This commit is contained in:
Kevin Lin
2024-01-04 15:34:55 -08:00
committed by GitHub
parent 1f4cb0e1ca
commit cf90b898f4

View File

@@ -30,7 +30,7 @@ common: &default_settings
enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_ENABLED', false) %> enabled: <%= ENV.fetch('NEW_RELIC_APPLICATION_LOGGING_ENABLED', false) %>
forwarding: forwarding:
# If `true`, the agent captures log records emitted by this application. # 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. # Defines the maximum number of log records to buffer in memory at a time.
max_samples_stored: 30000 max_samples_stored: 30000
metrics: metrics:
@@ -40,7 +40,7 @@ common: &default_settings
# If `true`, the agent decorates logs with metadata to link to entities, hosts, traces, and spans. # 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 requires a log forwarder to send your log files to New Relic.
# This should not be used when forwarding is enabled. # 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. # Environment-specific settings are in this section.