Method: NewRelic::Agent::AttributeFilter#enabled_destinations_for_attributes

Defined in:
lib/new_relic/agent/attribute_filter.rb

#enabled_destinations_for_attributes(config) ⇒ Object

[View source]

94
95
96
97
98
99
100
101
102
103
# File 'lib/new_relic/agent/attribute_filter.rb', line 94

def enabled_destinations_for_attributes(config)
  destinations = DST_NONE
  destinations |= DST_TRANSACTION_TRACER if config[:'transaction_tracer.attributes.enabled']
  destinations |= DST_TRANSACTION_EVENTS if config[:'transaction_events.attributes.enabled']
  destinations |= DST_ERROR_COLLECTOR if config[:'error_collector.attributes.enabled']
  destinations |= DST_BROWSER_MONITORING if config[:'browser_monitoring.attributes.enabled']
  destinations |= DST_SPAN_EVENTS if config[:'span_events.attributes.enabled']
  destinations |= DST_TRANSACTION_SEGMENTS if config[:'transaction_segments.attributes.enabled']
  destinations
end