Skip to content

Commit

Permalink
Update newrelic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan authored Oct 30, 2024
1 parent b7eb842 commit e19f132
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,47 +117,50 @@ common: &default_settings
# methods) strings representing Ruby methods that the agent can automatically
# add custom instrumentation to. This doesn't require any modifications of the
# source code that defines the methods.
#
# Use fully qualified class names (using the :: delimiter) that include any
# module or class namespacing.
#
# 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:
# ``
#
# 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:
# `
#
# 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:
# `
#
# 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:
# `
#
# 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

0 comments on commit e19f132

Please sign in to comment.