Add metrics for LogicLooper - #41
Merged
Merged
Conversation
- Introduced `LogicLooperMetrics` class for tracking metrics related to logic loopers, including shared pool loopers and processing duration. - Added a singleton `LogicLooperTracker` to manage active loopers and their lifecycle. - Modified `NotInitializedLogicLooperPool` to return an empty array for the `Loopers` property. - Updated `LogicLooper` to register/unregister with `LogicLooperTracker` and enhanced its `Dispose` method for proper cleanup. - Added unit tests for `LogicLooperMetrics` and `LogicLooperTracker` to ensure functionality. - Updated project files to include necessary package references for metrics and testing.
This commit introduces the "LogicLooper.Diagnostics" project, which includes a new project file with necessary properties and dependencies. It adds the `LogicLooperDiagnosticsExtensions` class for integrating metrics services into an `IServiceCollection`, along with the `LogicLooperMetricsInitializationHostedService` for metrics initialization. The `LogicLooperMetrics` class is enhanced with new metrics for running actions and processing durations, including histograms for average, minimum, and maximum durations. A new internal `PointBuffer` class is introduced for managing metrics data buffering. Additionally, the `LogicLooperTracker` class is updated to track approximately running actions, improving overall tracking capabilities.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.