Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-3396

HDC monitoring for server-side REST API calls from CMS application

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      Ard's idea:

      Another thing that might be quite interesting to measure with HDC from CMS requests : We have as you know the server side cms requests over 127.0.0.1. I think it is quite interesting to see how much time is spend in the server side rest calls. It basically boils down to
      org.hippoecm.hst.cmsrest.services.BlueprintsResource
      org.hippoecm.hst.cmsrest.services.ChannelsResource
      org.hippoecm.hst.cmsrest.services.DocumentsResource
      org.hippoecm.hst.cmsrest.services.SitesResource
      To avoid all the Task related boilerplate overhead, would it be an idea to use Spring aop in org/hippoecm/hst/cmsrest/SpringComponentManager-cmsrest.xml to have all the methods from the API (BlueprintService, ChannelsService, etc) automatically be wrapped with something like
      if (HDC.isStarted())

      Unknown macro: { task = HDC.getCurrentTask().startSubtask('the-invoked-api-method-name-and-class'); }

      WDYT? Is that feasible? That would track all server side rest calls from CMS to site in HDC in one go

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              wko Woonsan Ko (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: