I have a Java program (instrumented with OneAgent) which functions as a TCP server for a custom protocol, and I successfully defined a custom service over it, I’m tracing single requests and extracting meaningful request attributes.
Now, I have a regular Java web service (an application server instrumented with OneAgent) that connects to this server and performs requests using client classes for this custom protocol, and I need Dynatrace to understand that the web service is performing these requests and link the requests from incoming to outgoing services.
I can’t understand how to configure this behavior: how can I instrument the caller (the web service) in order to detect the invocation of my custom client class’ methods and then link these invocation to the custom server requests?