Custom Transaction Naming

If you are asking about a problem you are experiencing, please use the following template, as it will help us help you. If you have a different problem, please delete all of this text :slight_smile:

Kibana version:7.3.2

Elasticsearch version:7.3.2

APM Server version:7.3.2

APM Agent language and version:7.3.2

Browser version:Chrome - Version 76.0.3809.132

Original install method (e.g. download page, yum, deb, from source, etc.) and version:

Fresh install or upgraded from other version?

Is there anything special in your setup? For example, are you using the Logstash or Kafka outputs? Are you using a load balancer in front of the APM Servers? Have you changed index pattern, generated custom templates, changed agent configuration etc.

Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):

Steps to reproduce:
1.Click on APM
2.Go to transaction Tree
3.List Transactions

Errors in browser console (if relevant): There isn't any error , but is there a way to do custom transaction naming and drilldown based on transaction ID

Provide logs and/or server output (if relevant):NA

Hi @Joy_Chatterjee,

You can customize transactions naming by using API, and using a similar code as the following in your application:

Transaction transaction = ElasticApm.currentTransaction();
if( transaction != null ) {
    transaction.setName("your-custom-name");
}

What do you mean exactly by drilldown here ? Transactions are composed of Spans, and you can also use the API to customize their name if needed.

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