-
Type:
New Feature
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
DB Integration & Observability
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Overview
Implement the bind and render paths of the unified metrics framework (epic SPM-4962).
Scope of Work
* Bind path: MetricsRegistryTraits::bind(registry, svc, stats, path) with typed per-kind bind calls (bindCounter, bindGauge, bindHistogram, etc.).
* Instrument naming: mongodb.serverStatus.. unless overridden by otel_name. Map the IDL unit: to MetricUnit and thread description into the instrument.
* Startup backfill: at bind time, one delta equal to the current atomic value so OTel starts from the true total; then forward every post-bind delta to the instrument.
* serverStatus BSON export from the materialized tree, honoring include_by_default, requested-section filtering, and {{export:
}} opt-outs.
* K-way merge the contributor tree with the legacy globalMetricTree() until all legacy sections are migrated.
Design source
[Technical Design: Unified Metrics Framework|$GDOC], Core Scalar Framework tab: "Render path", "Bind path"; Registration and Process Lifecycle tab: "Backfilling OTel metrics"; Overview tab: "Compiling metrics".
- blocks
-
SERVER-138335 Golden shape test harness for serverStatus backwards compatibility
-
- Needs Scheduling
-
- is blocked by
-
SERVER-138333 Registration codegen: per-file MONGO_INITIALIZER metrics registration
-
- Closed
-
-
SERVER-138332 Build the MetricsRegistry for materialization, validation, and unmaterialize()
-
- Needs Scheduling
-
-
SERVER-138450 Generate attribute support for metrics IDL (set_once and allowed_values)
-
- Needs Scheduling
-