Enable Atomic floating_point arithmetic for double counters

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • N&O 2026-01-05
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Atomic currently only supports integral types for arithmetic, but as of C++20 floating points can do arithmetic as well. This is needed so we can have an atomic-based counter of type double.

      This (or the follow-up ticket) should include updating src/mongo/otel/metrics/metrics_counter_test.cpp with tests for double.

            Assignee:
            Erin McNulty (Inactive)
            Reporter:
            Michael Nugent
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: