• 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:

      {server\_status, ftdc, otel}

      }} 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".

            Assignee:
            Unassigned
            Reporter:
            Finley Lau
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: