25 Mar 2022
06:25 AM
- last edited on
25 Mar 2022
06:31 AM
by
MaciejNeumann
I'm trying to trace some web requests sent through a java client manually using OneAgent SDK.
I'm using this method call in OneAgentSDK interface
IncomingRemoteCallTracer traceIncomingRemoteCall(String serviceMethod, String serviceName, String serviceEndpoint);
I want to know which values these should map if I'm using OpenKit to create web calls like this:
String url = "http://www.my-backend.com/api/v3/users"; // create the WebRequestTracer WebRequestTracer webRequestTracer = action.traceWebRequest(url);
What should be the values I should pass to String serviceMethod, String serviceName, String serviceEndpoint if I'm using the web tracer as above ?
Hi @Navod ,
the values are used to create a service within Dynatrace on the server side and to identify the service. It's up to you.
In general: