Skip to content

Commit

Permalink
Update newrelic.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan authored Dec 2, 2024
1 parent 838c850 commit 94b7678
Showing 1 changed file with 20 additions and 30 deletions.
50 changes: 20 additions & 30 deletions newrelic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,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
# ```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
# ```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
# ```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
# ```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 @@ -321,18 +322,7 @@ common: &default_settings
# If true, disables agent middleware for Sinatra. This middleware is responsible
# for advanced feature support such as cross application tracing, page load
# timing, and error collection.
# Cross application tracing is deprecated in favor of distributed tracing.
# Distributed tracing is on by default for Ruby agent versions 8.0.0 and above.
# Middlewares are not required to support distributed tracing.
# To continue using cross application tracing, update the following options in
# your newrelic.yml configuration file:
# ``yaml
# # newrelic.yml
# cross_application_tracer:
# enabled: true
# distributed_tracing:
# enabled: false
# ``

# disable_sinatra_auto_middleware: false

# If true, disables view instrumentation.
Expand Down

0 comments on commit 94b7678

Please sign in to comment.