Configure the Ruby agent's attributes settings to control which key-value pairs are captured and sent to each destination: transaction traces, error collection, span events, transaction events, and browser monitoring.
Attributes
Attributes are key-value pairs containing information that determines the properties of an event or transaction. These key-value pairs can be viewed within transaction traces in APM, traced errors in APM, transaction events in dashboards, and page views in dashboards. You can customize exactly which attributes will be sent to each of these destinations
Type
Boolean
Default
true
Environ variable
NEW_RELIC_ATTRIBUTES_ENABLED
If true, enables capture of attributes for all destinations.
Type
Array
Default
[]
Environ variable
NEW_RELIC_ATTRIBUTES_EXCLUDE
Prefix of attributes to exclude from all destinations. Allows * as wildcard at end.
Type
Array
Default
[]
Environ variable
NEW_RELIC_ATTRIBUTES_INCLUDE
Prefix of attributes to include in all destinations. Allows * as wildcard at end.
Type
Boolean
Default
false
Environ variable
NEW_RELIC_BROWSER_MONITORING_ATTRIBUTES_ENABLED
If true, the agent captures attributes from browser monitoring.
Type
Array
Default
[]
Environ variable
NEW_RELIC_BROWSER_MONITORING_ATTRIBUTES_EXCLUDE
Prefix of attributes to exclude from browser monitoring. Allows * as wildcard at end.
Type
Array
Default
[]
Environ variable
NEW_RELIC_BROWSER_MONITORING_ATTRIBUTES_INCLUDE
Prefix of attributes to include in browser monitoring. Allows * as wildcard at end.
Type
Boolean
Default
true
Environ variable
NEW_RELIC_ERROR_COLLECTOR_ATTRIBUTES_ENABLED
If true, the agent captures attributes from error collection.
Type
Array
Default
[]
Environ variable
NEW_RELIC_ERROR_COLLECTOR_ATTRIBUTES_EXCLUDE
Prefix of attributes to exclude from error collection. Allows * as wildcard at end.
Type
Array
Default
[]
Environ variable
NEW_RELIC_ERROR_COLLECTOR_ATTRIBUTES_INCLUDE
Prefix of attributes to include in error collection. Allows * as wildcard at end.
Type
Boolean
Default
true
Environ variable
NEW_RELIC_SPAN_EVENTS_ATTRIBUTES_ENABLED
If true, the agent captures attributes on span events.
Type
Array
Default
[]
Environ variable
NEW_RELIC_SPAN_EVENTS_ATTRIBUTES_EXCLUDE
Prefix of attributes to exclude from span events. Allows * as wildcard at end.
Type
Array
Default
[]
Environ variable
NEW_RELIC_SPAN_EVENTS_ATTRIBUTES_INCLUDE
Prefix of attributes to include on span events. Allows * as wildcard at end.
Type
Boolean
Default
true
Environ variable
NEW_RELIC_TRANSACTION_EVENTS_ATTRIBUTES_ENABLED
If true, the agent captures attributes from transaction events.
Type
Array
Default
[]
Environ variable
NEW_RELIC_TRANSACTION_EVENTS_ATTRIBUTES_EXCLUDE
Prefix of attributes to exclude from transaction events. Allows * as wildcard at end.
Type
Array
Default
[]
Environ variable
NEW_RELIC_TRANSACTION_EVENTS_ATTRIBUTES_INCLUDE
Prefix of attributes to include in transaction events. Allows * as wildcard at end.
Type
Boolean
Default
true
Environ variable
NEW_RELIC_TRANSACTION_SEGMENTS_ATTRIBUTES_ENABLED
If true, the agent captures attributes on transaction segments.
Type
Array
Default
[]
Environ variable
NEW_RELIC_TRANSACTION_SEGMENTS_ATTRIBUTES_EXCLUDE
Prefix of attributes to exclude from transaction segments. Allows * as wildcard at end.
Type
Array
Default
[]
Environ variable
NEW_RELIC_TRANSACTION_SEGMENTS_ATTRIBUTES_INCLUDE
Prefix of attributes to include on transaction segments. Allows * as wildcard at end.
Type
Boolean
Default
true
Environ variable
NEW_RELIC_TRANSACTION_TRACER_ATTRIBUTES_ENABLED
If true, the agent captures attributes from transaction traces.
Type
Array
Default
[]
Environ variable
NEW_RELIC_TRANSACTION_TRACER_ATTRIBUTES_EXCLUDE
Prefix of attributes to exclude from transaction traces. Allows * as wildcard at end.
Type
Array
Default
[]
Environ variable
NEW_RELIC_TRANSACTION_TRACER_ATTRIBUTES_INCLUDE
Prefix of attributes to include in transaction traces. Allows * as wildcard at end.