OneAgent SDK documentation (https://github.com/Dynatrace/OneAgent-SDK) describes how to implement tracing for Custom Service methods.
The docs for het java implementation however (https://github.com/Dynatrace/OneAgent-SDK-for-Java) have no section on this. Does this mean that it is not possible for java?
Solved! Go to Solution.
This is likely because we already support definition of custom services for Java through Dynatrace with no requirement to modify the code. You just tell Dynatrace which methods should become custom services: https://www.dynatrace.com/support/help/how-to-use-dynatrace/transactions-and-services/configuration/...
See the matrix available here. As @James K. correctly states, you can use the UI to get custom services. OneAgent SDK provides these features for languages where the online instrumentation cannot be achieved such as C/C++.