Skip to content

Commit

Permalink
Update newrelic.yml
Browse files Browse the repository at this point in the history
Small edits
  • Loading branch information
hannahramadan authored Jan 24, 2025
1 parent 33c8894 commit 15339a8
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,8 @@ common: &default_settings
# application_logging.forwarding.labels.exclude: []

# Sets the minimum level a log event must have to be forwarded to New Relic.
# This is based on the integer values of Ruby's Logger::Severity constants.
# This is based on the integer values of Ruby's Logger::Severity constants:
# https://github.com/ruby/logger/blob/113b82a06b3076b93a71cd467e1605b23afb3088/lib/logger/severity.rb
# The intention is to forward logs with the level given to the configuration, as
# well as any logs with a higher level of severity.
# For example, setting this value to "debug" will forward all log events to New
Expand Down Expand Up @@ -128,42 +129,43 @@ common: &default_settings
# Here is some Ruby source code that defines a render_png instance method for an
# Image class and a notify class method for a User class, both within a
# MyCompany module namespace:
# ``rb
#
# module MyCompany
# class Image
# def render_png
# # code to render a PNG
# end
# end
# class User
# def self.notify
# # code to notify users
# end
# end
# class Image
# def render_png
# # code to render a PNG
# end
# end
#
# class User
# def self.notify
# # code to notify users
# end
# end
# end
# `
#
# Given that source code, the newrelic.yml config file might request
# instrumentation for both of these methods like so:
# `yaml
#
# automatic_custom_instrumentation_method_list:
# - MyCompany::Image#render_png
# - MyCompany::User.notify
# `
#
# That configuration example uses YAML array syntax to specify both methods.
# Alternatively, you can use a comma-delimited string:
# `yaml
#
# automatic_custom_instrumentation_method_list: 'MyCompany::Image#render_png,
# MyCompany::User.notify'
# `
#
# Whitespace around the comma(s) in the list is optional. When configuring the
# agent with a list of methods via the
# NEW_RELIC_AUTOMATIC_CUSTOM_INSTRUMENTATION_METHOD_LIST environment variable,
# use this comma-delimited string format:
# `sh
#
# export
# NEW_RELIC_AUTOMATIC_CUSTOM_INSTRUMENTATION_METHOD_LIST='MyCompany::Image#render_png,
# MyCompany::User.notify'
# ``
#
# automatic_custom_instrumentation_method_list: []

# Specify a list of constants that should prevent the agent from starting
Expand Down Expand Up @@ -967,7 +969,7 @@ common: &default_settings
# NOTE: All "security.*" configuration parameters are related only to the
# security agent, and all other configuration parameters that may
# have "security" in the name somewhere are related to the APM agent.

# If true, the security agent loads (the agent performs a Ruby 'require')
# security.agent.enabled: false

Expand Down

0 comments on commit 15339a8

Please sign in to comment.