14 Apr 2023 06:41 AM - last edited on 17 Apr 2023 08:01 AM by MaciejNeumann
We have a monolithic Clojure (JVM) application. This application handles many different usecases. A usecase typically starts with a web request, which enqueues multiple background jobs. The jobs run and update the database.
In another forum post, I read a community member mention
> the customer, he can create a custom service for a method he is interested in and then we would capture purepaths for that method
Does this mean I can create custom services for certain usecases within my monolith? I find the idea interesting, because that would make it easy for me leverage builtin "Service-level availability" templates for the SLOs for that usecase.
Solved! Go to Solution.
14 Apr 2023 01:07 PM - edited 14 Apr 2023 01:09 PM
Custom service is great funcional.
This is how it looks:
After instrumentation Dynatrace will add service. You can find it in "called services".
in squares - additional information on the operation of methods instrumented using custom service
How exactly it takes - buildFeedMetadata method and buildFeedEntries
Great real example with monolith app:
we have successfully instrumented service, which generate insurance policy(PDF) and send it to the Customer (async logic).
Out of the box with Dynatrace we can see only http service - which send response 200(OK) in microseconds - for incoming generation request and other main work (for 30 sec+) and logic was hidden from us.
We have added processing steps with Custom Service and have got:
if Service slowed Dynatrace exactly show which step of processing (Custrom Service) is the root cause of the problem.
Regards,
Alex Romanenkov