Create a wrapper that tracks contention metrics

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Networking & Observability
    • Fully Compatible
    • N&O 2025-07-07, N&O 2025-07-21, N&O 2025-08-04
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Introduce ObservableMutex that can wrap a std::mutex or std::shared_mutex and collect contention metrics. Also, introduce unit-tests that verify the following:

      • The number of acquisitions is only updated if acquisition doesn’t throw.
      • The wait time is only measured for contended acquisitions.
      • The number of contended acquisitions is properly updated.

            Assignee:
            Nicole Bain (Inactive)
            Reporter:
            Amirsaman Memaripour
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: