18 Apr 2019 01:16 PM - last edited on 20 Oct 2022 11:17 AM by MaciejNeumann
When a defined web service (non-public, internal) gets called by another service (public) within same JVM (request never leaves the JVM, i.e. not load-balanced etc.) - the internal request is not counted and doesn't show up in a service flow etc.
Can this be solved in any way? I.e. I want to visualize these internal requests - and not only outside-JVM-requests.
Example flow: Client 1 -> Web server -> web service JVM x -> internal web service JVM x -> databases, external dependencies etc.
Current visualization in Dynatrace: Client 1 -> Web server -> web service JVM x -> databases, external dependencies etc.
Solved! Go to Solution.
18 Apr 2019 01:58 PM
Hello Mattias,
You could create a Custom Service based on the method invoked on internal web service JVM x
https://www.dynatrace.com/support/help/how-to-use-...
This will break up your service in two.
Let me know if you need more help with that.
Regards
18 Apr 2019 02:14 PM
Thanks, suppose I could. The service is already defined (automatically), but only reports statistics when not being requested by same JVM. Request over EJB internally and over HTTP "externally". Do you recommend me to still break up this service - even though it's already defined?
18 Apr 2019 02:35 PM
Yes, I think that by creating a custom service it will still receive the external calls + it will force to break the web service JVM x and provide the missing metrics.
If you feel more comfortable, you could try it first on a dev/test environment and the replicate the changes in production.
18 Apr 2019 02:38 PM
Thanks! Will create a custom serivce and see how that turns out.
26 Apr 2019 01:13 PM
Created - and tested - a custom service; works fine! My only concern right now is how to merge this custom service (in JVM-calls) with already existing service (other JVM-calls). What do you recommend? Ideally I would like to merge the services, as it's same code-base, only difference is what protocol that is being used to reach the services.