cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

One Agent SDK - Tracing incoming web requests: what do the parameters service name,method,endpoint mean ?

Navod
Frequent Guest

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 ?

1 REPLY 1

Julius_Loman
DynaMight Guru
DynaMight Guru

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:

  • serviceMethod stands for the operation executed (e.g. createOrder)
  • serviceName is the name of the service (e.g. OrderService)
  • serviceEndpoint is the endpoint of the service (rmi://Shop/OrderService)
Certified Dynatrace Master | TEMPEST a.s., Slovakia, Dynatrace Master Partner