• Type: Task
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • DB Integration & Observability
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Request
      Add a fixed-size, value-semantic histogram to the metric primitives (SERVER-138330), since the existing Histogram and AtomicHistogram are runtime-sized and heap-backed and so cannot be embedded by value or accounted for by sizeof.

          1. Motivation
            A concrete consumer is the q-error histogram landing in (SERVER-136700), which holds a heap-free histogram by value in every QueryStatsEntry. Designing the primitive against that use case would require settling whether bucket counts saturate or wrap, whether it provides merge (add) and copy semantics, and whether its counters are atomic or plain. BSON serialization and the per-metric grouping would stay with the consumer, as they are query-stats-specific and would widen the primitive's dependencies.

      There could be future consumers so perhaps scheduling this work when that happens would be worthwhile.

            Assignee:
            Unassigned
            Reporter:
            Adithi Raghavan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: