# File lib/new_relic/agent/transaction/request_attributes.rb, line 30
        def assign_agent_attributes txn
         default_destinations = AttributeFilter::DST_TRANSACTION_TRACER|
                                AttributeFilter::DST_TRANSACTION_EVENTS|
                                AttributeFilter::DST_ERROR_COLLECTOR

          if referer
            txn.add_agent_attribute 'request.headers.referer''request.headers.referer', referer, AttributeFilter::DST_ERROR_COLLECTOR
          end

          # This is temporary and aims to avoid collecting this attribute on transaction and error traces, 
          # which already directly have a path value that the RPM UI depends on. We will either only
          # collect request_uri as an agent attribute, in conjunction with UI work, or we will stop collecting
          # this as an agent attribute (RUBY-1573)
          if request_path && configured_to_collect?
            txn.add_agent_attribute :request_uri, request_path, AttributeFilter::DST_TRANSACTION_EVENTS
          end

          if accept
            txn.add_agent_attribute 'request.headers.accept''request.headers.accept', accept, default_destinations
          end

          if content_length
            txn.add_agent_attribute 'request.headers.contentLength''request.headers.contentLength', content_length, default_destinations
          end

          if content_type
            txn.add_agent_attribute 'request.headers.contentType''request.headers.contentType', content_type, default_destinations
          end

          if host
            txn.add_agent_attribute 'request.headers.host''request.headers.host', host, default_destinations
          end

          if user_agent
            txn.add_agent_attribute 'request.headers.userAgent''request.headers.userAgent', user_agent, default_destinations
          end

          if request_method
            txn.add_agent_attribute 'request.method''request.method', request_method, default_destinations
          end
        end