---
title: Ruby agent attributes settings
source: https://docs.newrelic.com/docs/apm/agents/ruby-agent/configuration/ruby-agent-configuration-attributes-settings
---

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]

[Attributes](https://docs.newrelic.com/docs/features/agent-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

**attributes.enabled**

| TypeBoolean                                  |
| -------------------------------------------- |
| Defaulttrue                                  |
| Environ variableNEW_RELIC_ATTRIBUTES_ENABLED |

If `true`, enables capture of attributes for all destinations.

**attributes.exclude**

| TypeArray                                    |
| -------------------------------------------- |
| Default\[]                                   |
| Environ variableNEW_RELIC_ATTRIBUTES_EXCLUDE |

Prefix of attributes to exclude from all destinations. Allows `*` as wildcard at end.

**attributes.include**

| TypeArray                                    |
| -------------------------------------------- |
| Default\[]                                   |
| Environ variableNEW_RELIC_ATTRIBUTES_INCLUDE |

Prefix of attributes to include in all destinations. Allows `*` as wildcard at end.

**browser_monitoring.attributes.enabled**

| TypeBoolean                                                     |
| --------------------------------------------------------------- |
| Defaultfalse                                                    |
| Environ variableNEW_RELIC_BROWSER_MONITORING_ATTRIBUTES_ENABLED |

If `true`, the agent captures attributes from browser monitoring.

**browser_monitoring.attributes.exclude**

| TypeArray                                                       |
| --------------------------------------------------------------- |
| Default\[]                                                      |
| Environ variableNEW_RELIC_BROWSER_MONITORING_ATTRIBUTES_EXCLUDE |

Prefix of attributes to exclude from browser monitoring. Allows `*` as wildcard at end.

**browser_monitoring.attributes.include**

| TypeArray                                                       |
| --------------------------------------------------------------- |
| Default\[]                                                      |
| Environ variableNEW_RELIC_BROWSER_MONITORING_ATTRIBUTES_INCLUDE |

Prefix of attributes to include in browser monitoring. Allows `*` as wildcard at end.

**error_collector.attributes.enabled**

| TypeBoolean                                                  |
| ------------------------------------------------------------ |
| Defaulttrue                                                  |
| Environ variableNEW_RELIC_ERROR_COLLECTOR_ATTRIBUTES_ENABLED |

If `true`, the agent captures attributes from error collection.

**error_collector.attributes.exclude**

| TypeArray                                                    |
| ------------------------------------------------------------ |
| Default\[]                                                   |
| Environ variableNEW_RELIC_ERROR_COLLECTOR_ATTRIBUTES_EXCLUDE |

Prefix of attributes to exclude from error collection. Allows `*` as wildcard at end.

**error_collector.attributes.include**

| TypeArray                                                    |
| ------------------------------------------------------------ |
| Default\[]                                                   |
| Environ variableNEW_RELIC_ERROR_COLLECTOR_ATTRIBUTES_INCLUDE |

Prefix of attributes to include in error collection. Allows `*` as wildcard at end.

**span_events.attributes.enabled**

| TypeBoolean                                              |
| -------------------------------------------------------- |
| Defaulttrue                                              |
| Environ variableNEW_RELIC_SPAN_EVENTS_ATTRIBUTES_ENABLED |

If `true`, the agent captures attributes on span events.

**span_events.attributes.exclude**

| TypeArray                                                |
| -------------------------------------------------------- |
| Default\[]                                               |
| Environ variableNEW_RELIC_SPAN_EVENTS_ATTRIBUTES_EXCLUDE |

Prefix of attributes to exclude from span events. Allows `*` as wildcard at end.

**span_events.attributes.include**

| TypeArray                                                |
| -------------------------------------------------------- |
| Default\[]                                               |
| Environ variableNEW_RELIC_SPAN_EVENTS_ATTRIBUTES_INCLUDE |

Prefix of attributes to include on span events. Allows `*` as wildcard at end.

**transaction_events.attributes.enabled**

| TypeBoolean                                                     |
| --------------------------------------------------------------- |
| Defaulttrue                                                     |
| Environ variableNEW_RELIC_TRANSACTION_EVENTS_ATTRIBUTES_ENABLED |

If `true`, the agent captures attributes from transaction events.

**transaction_events.attributes.exclude**

| TypeArray                                                       |
| --------------------------------------------------------------- |
| Default\[]                                                      |
| Environ variableNEW_RELIC_TRANSACTION_EVENTS_ATTRIBUTES_EXCLUDE |

Prefix of attributes to exclude from transaction events. Allows `*` as wildcard at end.

**transaction_events.attributes.include**

| TypeArray                                                       |
| --------------------------------------------------------------- |
| Default\[]                                                      |
| Environ variableNEW_RELIC_TRANSACTION_EVENTS_ATTRIBUTES_INCLUDE |

Prefix of attributes to include in transaction events. Allows `*` as wildcard at end.

**transaction_segments.attributes.enabled**

| TypeBoolean                                                       |
| ----------------------------------------------------------------- |
| Defaulttrue                                                       |
| Environ variableNEW_RELIC_TRANSACTION_SEGMENTS_ATTRIBUTES_ENABLED |

If `true`, the agent captures attributes on transaction segments.

**transaction_segments.attributes.exclude**

| TypeArray                                                         |
| ----------------------------------------------------------------- |
| Default\[]                                                        |
| Environ variableNEW_RELIC_TRANSACTION_SEGMENTS_ATTRIBUTES_EXCLUDE |

Prefix of attributes to exclude from transaction segments. Allows `*` as wildcard at end.

**transaction_segments.attributes.include**

| TypeArray                                                         |
| ----------------------------------------------------------------- |
| Default\[]                                                        |
| Environ variableNEW_RELIC_TRANSACTION_SEGMENTS_ATTRIBUTES_INCLUDE |

Prefix of attributes to include on transaction segments. Allows `*` as wildcard at end.

**transaction_tracer.attributes.enabled**

| TypeBoolean                                                     |
| --------------------------------------------------------------- |
| Defaulttrue                                                     |
| Environ variableNEW_RELIC_TRANSACTION_TRACER_ATTRIBUTES_ENABLED |

If `true`, the agent captures attributes from transaction traces.

**transaction_tracer.attributes.exclude**

| TypeArray                                                       |
| --------------------------------------------------------------- |
| Default\[]                                                      |
| Environ variableNEW_RELIC_TRANSACTION_TRACER_ATTRIBUTES_EXCLUDE |

Prefix of attributes to exclude from transaction traces. Allows `*` as wildcard at end.

**transaction_tracer.attributes.include**

| TypeArray                                                       |
| --------------------------------------------------------------- |
| Default\[]                                                      |
| Environ variableNEW_RELIC_TRANSACTION_TRACER_ATTRIBUTES_INCLUDE |

Prefix of attributes to include in transaction traces. Allows `*` as wildcard at end.
