Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-997

Duplicating attributes from dispatch_to_server to improve debugging

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None
    • 1

    Description

      Most, perhaps all, current tracing systems don't allow performing queries across spans. E.g. there is no way of finding dispatch_to_server spans where <some attribute in a parent span> == <some value>. One useful query along those lines would be checking the server_duration times against different buckets.

      After discussions with one of the tracing providers, we understand there are two solutions to this: duplicate some attributes between spans, or use OpenTelemetry 'baggage'. In practice, baggage does not seem useful: it is unclear/undocumented how to attach it through the API and, many (perhaps all) tracing systems do not appear to expose it.

      So, instead we will duplicate some useful attributes between the dispatch_to_server and top-level KV span.  A full justification for which attributes is provided here: https://docs.google.com/document/d/1BAPS8bPMv8-4FPIdysgpxEsKrUgd595EAGOU-_nXHRY/edit?disco=AAAALpOPEZU

      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

            daschl Michael Nitschinger
            graham.pople Graham Pople
            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