Skip to content

Conversation

@pietrodimarco-dfinity
Copy link
Contributor

@pietrodimarco-dfinity pietrodimarco-dfinity commented Mar 21, 2025

This PR allows to easy manage MetricsManager state internally.
Before this was not possible due to synchronous borrowing of StableBtreeMaps used by MetricsManager.

Changes:

  • Using async-aware Mutex for async calls to MetricsManager
  • Moved StableBtreeMaps used by MetricsManager internally
  • Modified tests

@pietrodimarco-dfinity pietrodimarco-dfinity requested a review from a team as a code owner March 21, 2025 12:39
@pietrodimarco-dfinity pietrodimarco-dfinity changed the title Eefactor: move MetricsManager state inside itself Eefactor: manage MetricsManager state inside itself Mar 21, 2025
@pietrodimarco-dfinity pietrodimarco-dfinity changed the title Eefactor: manage MetricsManager state inside itself Refactor: manage MetricsManager state inside itself Mar 21, 2025
@pietrodimarco-dfinity pietrodimarco-dfinity changed the title Refactor: manage MetricsManager state inside itself Refactor: manage MetricsManager state internally Mar 21, 2025
@pietrodimarco-dfinity pietrodimarco-dfinity merged commit f80b70f into main Mar 21, 2025
7 checks passed
@pietrodimarco-dfinity pietrodimarco-dfinity deleted the pmarco/move-state-in-metrics-manager branch March 21, 2025 16:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants