From 94b76788173357e1d4258d041e832375b82db76d Mon Sep 17 00:00:00 2001 From: Hannah Ramadan <76922290+hannahramadan@users.noreply.github.com> Date: Mon, 2 Dec 2024 14:32:14 -0800 Subject: [PATCH] Update newrelic.yml --- newrelic.yml | 50 ++++++++++++++++++++------------------------------ 1 file changed, 20 insertions(+), 30 deletions(-) diff --git a/newrelic.yml b/newrelic.yml index e18db6ba61..2000fbf888 100644 --- a/newrelic.yml +++ b/newrelic.yml @@ -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 @@ -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.