Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-2740

Optimize performance when request tracing is disabled

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.1
    • library
    • None
    • 1

    Description

      Currently, request tracing is enabled by default, which seems to be an accidental oversight.

      Additionally, even when NullRequestTracer is in use there is some unnecessary overhead building tags around string formatting. This uses extra CPU cycles and creates additional heap allocations. This could be addressed by skipping the string format step when the NullRequestTracer is in use.

      Alternatively, the tag system could be redesigned to delay string formatting until the span is complete and being processed. This would have the advantage of avoiding the string format expense if the span is lower than the threshold for tracing.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          There are no comments yet on this issue.

          People

            btburnett3 Brant Burnett
            btburnett3 Brant Burnett
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty