Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-1222

No way to set the query or search tracing threshold from the connection string.

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.0.1
    • None
    • None
    • None
    • 1

    Description

      There is no way to set the tracing threshold time for queries or search from the connection string. If you call cntl programmatically, it works fine. The issue is super simple to fix:

      from src/cntl.cc:

      976     {"tracing_threshold_queue_size", LCB_CNTL_TRACING_THRESHOLD_QUEUE_SIZE, convert_u32},
       977     {"tracing_threshold_kv", LCB_CNTL_TRACING_THRESHOLD_KV, convert_timevalue},
       978     {"tracing_threshold_search", LCB_CNTL_TRACING_THRESHOLD_QUERY, convert_timevalue},
       979     {"tracing_threshold_view", LCB_CNTL_TRACING_THRESHOLD_VIEW, convert_timevalue},
       980     {"tracing_threshold_search", LCB_CNTL_TRACING_THRESHOLD_SEARCH, convert_timevalue},
       981     {"tracing_threshold_analytics", LCB_CNTL_TRACING_THRESHOLD_ANALYTICS, convert_timevalue},
      
      

      So – we have 2 tracing_threshold_search, and no tracing_threshold_query. And of course the search actually sets the query (the second one is never hit), so neither really works from the connection string.

      I'll make a simple patch for this. Python tests will skip this one until this goes in - ideally in 3.0.2.

      Attachments

        For Gerrit Dashboard: CCBC-1222
        # Subject Branch Project Status CR V

        Activity

          Build couchbase-server-7.0.0-3115 contains libcouchbase commit 1753117 with commit message:
          CCBC-1222: Tracing thresholds for query and search in connection strings.

          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-3115 contains libcouchbase commit 1753117 with commit message: CCBC-1222 : Tracing thresholds for query and search in connection strings.

          People

            avsej Sergey Avseyev
            david.kelly David Kelly
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty