How to get more useful information from transactions

So, I often see transactions with the name like "2#run". From the transaction it looks like it is a TimerTask. Is there anything I can do to help with the naming for that transaction?

I think I see different examples where there is a descriptive name. But I think in those cases I have a class that extends TimerTask.

We name TimerTasks based on the simple class and method names. I assume that 2#run maybe comes from an anonymous class.

You can use our public API to rename the transactions by adding the following snippet into your run methods:

ElasticApm.currentTransaction().setName("New Transaction Name Here");

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.