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

TraceRunnable and TraceCallable should pull description from child thread instead of parent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.2
    • core
    • None
    • 4.2

    Description

      If a TraceRunnable or TraceCallable is passed a null scope name, then it will set the description to the current thread's name, which happens to be the parent thread. It would be much more useful to set the description to the child thread's name.

      A nice side effect of this change is that we can add a version of tracer.newTraceExecutor that doesn't need to take a description for use by applications that take great care to name their threads in an informative manner.

      Attachments

        1. HTRACE-355.patch.txt
          7 kB
          Mike Drob
        2. HTRACE-355.patch.txt
          6 kB
          Mike Drob

        Activity

          People

            mdrob Mike Drob
            mdrob Mike Drob
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: