Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1153

Make tracing instrumentation configurable

    XMLWordPrintableJSON

Details

    • Done

    Description

      TracingUtil.createProxy is a helper method to create a proxy instance with tracing support.

      The proxy instance implements the same interface as the original class and delegates all the method calls to the original instance but it also sends tracing information to the tracing server.

      By default it's not a big overhead as the tracing libraries can be configured to send tracing only with some low probability.

      But to make it more safe we can make it optional. With a global 'hdds.tracing.enabled' configuration variable (can be true by default) we can adjust the behavior of TracingUtil.createProxy.

      If the tracing is disabled the TracingUtil.createProxy should return with the 'delegate' parameter instead of a proxy.

      Attachments

        1. HDDS-1153.001.patch
          11 kB
          Kitti Nanasi

        Issue Links

          Activity

            People

              knanasi Kitti Nanasi
              elek Marton Elek
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h