Change Transaction names to your liking

DripStat automatically generates a name for your Transactions. Now you can change that name if you don’t like it.

The recent update (v 2.1.0) of DripStat-API contains the following method:

DripStat.setCurrentTransactionName(String txnName)

Call it anywhere inside your code with the name of the Transaction you would like to see.

Example

@RequestMapping(value = "/accountinfo", method = RequestMethod.GET)
public AccountInfo accountinfo() {
  DripStat.setCurrentTransactionName("/accounts/info")
  //code...
}


Before API usage:

After:

Related Links:

Show Comments