Uploaded image for project: 'HTrace'
  1. HTrace
  2. HTRACE-297

htraced: avoid serializing spans to json unless TRACE logging is enabled

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1
    • htraced
    • None
    • 4.1

    Description

      We have been unconditionally serializing spans to JSON, but only logging them when TRACE logging is enabled. Profiling has revealed that this is a CPU bottleneck. Let's put "if" statement guards around the log messages to avoid doing this serialization unless it is really useful.

      Attachments

        1. HTRACE-297.001.patch
          6 kB
          Colin McCabe

        Activity

          People

            cmccabe Colin McCabe
            cmccabe Colin McCabe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: