• /
  • EnglishEspañol日本語한국어Português
  • Log inStart now

Enable and disable attributes (Ruby)

This describes the properties to enable or disable attributes, and the rules that New Relic uses when determining which attributes to include or exclude for a destination. This also includes a summary of the Ruby agent properties that have been deprecated or removed with the release of New Relic agent attributes.

Properties

Use the following properties to enable or disable attributes:

Attribute rules

New Relic follows these rules when determining which attributes to include or exclude for a destination.

URI-related properties

By default, the Ruby agent reports Uniform Resource Identifiers (URIs) to New Relic in several different places, including the following destinations:

New Relic recommends having these URIs reported, as they can contain useful debugging information. If your URIs contain sensitive data you don't want to report, such as email addresses or account IDs, you can disable URI reporting. To disable URI reporting, add any of the above attribute names to the attributes.exclude list.

For example, adding the following key to your configuration file will stop the agent from reporting any of the URI-related properties:

attributes.exclude: uri

Deprecated and removed properties

The following properties have been deprecated or removed. Switch to the new attributes configuration for these properties when upgrading your Ruby agent.

Deprecated property

New property

Removed Version

capture_params

attributes.include: request.parameters.*

N/A

resque.capture_params

attributes.include: job.resque.args.*

9.0.0

sidekiq.capture_params

attributes.include: job.sidekiq.args.*

9.0.0

transaction_tracer.capture_attributes

transaction_tracer.attributes.enabled

9.0.0

error_collector.capture_attributes

error_collector.attributes.enabled

9.0.0

browser_monitoring.capture_attributes

browser_monitoring.attributes.enabled

9.0.0

analytics_events.capture_attributes

transaction_events.attributes.enabled

9.0.0

Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.