Skip to content

Commit

Permalink
Merge pull request #2877 from newrelic/config-doc-backports
Browse files Browse the repository at this point in the history
Update verbiage to match docs website
  • Loading branch information
kaylareopelle authored Oct 1, 2024
2 parents 3cf0439 + 7264efa commit fd13718
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/new_relic/agent/configuration/default_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1159,7 +1159,7 @@ def self.enforce_fallback(allowed_values: nil, fallback: nil)
:allowed_from_server => false,
:transform => proc { |arr| NewRelic::Agent.add_automatic_method_tracers(arr) },
:description => <<~DESCRIPTION
An array of `CLASS#METHOD` (for instance methods) and/or `CLASS.METHOD` (for class methods) strings representing Ruby methods for the agent to automatically add custom instrumentation to without the need for altering any of the source code that defines the methods.
An array of `CLASS#METHOD` (for instance methods) and/or `CLASS.METHOD` (for class 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.
Expand Down Expand Up @@ -1189,13 +1189,13 @@ def self.notify
- MyCompany::User.notify
```
That configuration example uses YAML array syntax to specify both methods. Alternatively, a comma-delimited string can be used instead:
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, this comma-delimited string format should be used:
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'
Expand Down

0 comments on commit fd13718

Please sign in to comment.