Naming Examples
The following example shows naming based on a part of the value of the sixth parameter:
rest-transaction-naming={param-5:toString().toLowerCase().subString(5,20)}
The characters '{' and '}' are reserved. If used in getter chains or as text in the name the characters must be escaped with '\'. E.g. {{class-name
}} would display as {com.singularity.RestObject
}.
You can use characters in addition to parameters. For example, in the following example, the class name and method name are separated by a slash:
rest-transaction-naming={class-name}/{method-name}
Based on this example, when the Java Agent sees a REST resource with a class name of com.company.rest.resources.Employees
with a CreateNewEmployee
method, it names the business transaction com.company.rest.resources.Employees/CreateNewEmployee
.