Grouping Similar Transactions


Dynamic Transaction names are becoming more familiar with lots of applications, making it difficult to actually track the performance of the application. Dynamic transactions are web transactions within an application having single URL but get appended with unique alpha numeric identifiers every time they are invoked, making the web transaction name itself look different. Tracking such individual URLs is a herculean task. Here, this feature of grouping similar transactions, will help to group these dynamic transactions into the actual URL that needs to be monitored.

Configuration Steps

  1. Create a new file named "transaction_merge_patterns.conf" in the directory where apminsight.conf file resides in your application.
  2. Open the file in any text editor and specify key value pairs as per syntax given below

    Regular expression of URLs=new_name_to_be_assigned

  3. Start or restart the rails server, all transactions performed from now, will use the above defined patterns to merge the transactions

Example:

ruby/shop/item/laptops/.*=shop/laptops
ruby/shop/item/.*/dell/.*=shop/item/dell
.*/cart/purchase=shop/purchase