|
| 1 | +# |
| 2 | +# This file configures the New Relic Agent. New Relic monitors Ruby, Java, |
| 3 | +# .NET, PHP, Python, Node, and Go applications with deep visibility and low |
| 4 | +# overhead. For more information, visit www.newrelic.com. |
| 5 | +# |
| 6 | +# Generated October 28, 2022 |
| 7 | +# |
| 8 | +# This configuration file is custom generated for NewRelic Administration |
| 9 | +# |
| 10 | +# For full documentation of agent configuration options, please refer to |
| 11 | +# https://docs.newrelic.com/docs/agents/ruby-agent/installation-configuration/ruby-agent-configuration |
| 12 | + |
| 13 | +common: &default_settings |
| 14 | + # Required license key associated with your New Relic account. |
| 15 | + license_key: <%= ENV['NEW_RELIC_KEY'] %> |
| 16 | + |
| 17 | + # Your application name. Renaming here affects where data displays in New |
| 18 | + # Relic. For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications |
| 19 | + app_name: 'devto' |
| 20 | + |
| 21 | + distributed_tracing: |
| 22 | + enabled: true |
| 23 | + |
| 24 | + # To disable the agent regardless of other settings, uncomment the following: |
| 25 | + |
| 26 | + # agent_enabled: false |
| 27 | + |
| 28 | + # Logging level for log/newrelic_agent.log |
| 29 | + log_level: info |
| 30 | + |
| 31 | + application_logging: |
| 32 | + # If `true`, all logging-related features for the agent can be enabled or disabled |
| 33 | + # independently. If `false`, all logging-related features are disabled. |
| 34 | + enabled: true |
| 35 | + forwarding: |
| 36 | + # If `true`, the agent captures log records emitted by this application. |
| 37 | + enabled: true |
| 38 | + # Defines the maximum number of log records to buffer in memory at a time. |
| 39 | + max_samples_stored: 10000 |
| 40 | + metrics: |
| 41 | + # If `true`, the agent captures metrics related to logging for this application. |
| 42 | + enabled: true |
| 43 | + local_decorating: |
| 44 | + # If `true`, the agent decorates logs with metadata to link to entities, hosts, traces, and spans. |
| 45 | + # This requires a log forwarder to send your log files to New Relic. |
| 46 | + # This should not be used when forwarding is enabled. |
| 47 | + enabled: false |
| 48 | + |
| 49 | +# Environment-specific settings are in this section. |
| 50 | +# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment. |
| 51 | +# If your application has other named environments, configure them here. |
| 52 | +development: |
| 53 | + <<: *default_settings |
| 54 | + app_name: 'devto (Development)' |
| 55 | + |
| 56 | +test: |
| 57 | + <<: *default_settings |
| 58 | + # It doesn't make sense to report to New Relic from automated test runs. |
| 59 | + monitor_mode: false |
| 60 | + |
| 61 | +staging: |
| 62 | + <<: *default_settings |
| 63 | + app_name: 'devto (Staging)' |
| 64 | + |
| 65 | +production: |
| 66 | + <<: *default_settings |
0 commit comments