-
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.
-
-
- 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.
- Motivation
-
There could be future consumers so perhaps scheduling this work when that happens would be worthwhile.
- is related to
-
SERVER-138330 Productionize metric primitives for the unified metrics framework
-
- Closed
-
-
SERVER-136700 Measure Q-error of CE for IDX scans, clustered collection and collection scan (with filters)
-
- Closed
-