Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-61018

Create a generic histogram type

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: In Progress
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 5.3 Desired
    • Component/s: Internal Code
    • Labels:
      None
    • Sprint:
      Service Arch 2022-1-10, Service Arch 2022-1-24
    • Story Points:
      5

      Description

      Tasks:

      • Rewrite IntegerHistogram so that it is just a generic Histogram.
      • Add a template parameter to the class of the key type, rather than int64
        • Perhaps static_assert that the key type has operator< well-defined so that we can use std::upper_bound to find the insertion index
      • Add a type alias for IntegerHistogram so that it has identical behavior to today. Should just be the now “generic” Histogram with int64_t as the first type parameter
      • Add aliases for Duration types (like Milliseconds) to ensure they work.

      Old text

      Introduce a generic histogram type that can replace/extend IntegerHistogram and offer more flexibility. This new type should allow defining customized tags for each bucket when serializing the histogram, and support duration types (e.g., Milliseconds).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              reo.kimura Reo Kimura
              Reporter:
              amirsaman.memaripour Amirsaman Memaripour
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: