# File lib/new_relic/agent/cross_app_monitor.rb, line 135
      def set_transaction_attributes(state)
        # We expect to get the before call to set the id (if we have it) before
        # this, and then write our custom parameter when the transaction starts
        return unless txn = state.current_transaction

        if state.client_cross_app_id
          txn.attributes.add_intrinsic_attribute(:client_cross_process_id, state.client_cross_app_id)
        end

        referring_guid = client_referring_transaction_guid(state)
        if referring_guid
          txn.attributes.add_intrinsic_attribute(:referring_transaction_guid, referring_guid)
        end
      end