14 May 2018
11:20 AM
- last edited on
14 Feb 2023
12:24 PM
by
MaciejNeumann
Basically you have to do some steps to be able to correlate WebRequests. As the WebRequests are sent via the adapters and triggered from JS part (but executed natively via OkHttp) they would always end up as a single WebRequest.
To be able to add the WebRequest under a certain action you need to pass the Dynatrace cookies to the real WebRequest. You can do this by using the JavaScriptBridge DynatraceJsBridge.getCookieForAction(actionId) and pass this value as Header "Cookies" to the adapter request.