Service Naming

Plumbr agent supports a number of web frameworks for service name identification.
However, there are cases where the default service name extraction functionality is not enough and
Plumbr detects only one or two services in your application – typically the default
root application URLs. In such case, the Agent API can be used to better distinguish
between services.

In case of a regular servlet-based web-application, transaction boundaries are
correctly identified by Plumbr and only the service name should be set in a correct
place in the code (usually a central routing class that extracts service
name from request parameters). To set the service name for the current transaction
one must call:

Plumbr.setServiceName("service name");

After the service name is set, it cannot be redefined.