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
    • Resolution: Fixed
    • Major
    • 3.1.1
    • None
    • 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

        For Gerrit Dashboard: NCBC-2740
        # Subject Branch Project Status CR V

        Activity

          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