-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[AMQ-9437] Add policyEntry advancedNetworkStatisticsEnabled flag #1156
Conversation
This change is breaking
I'm fixing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The problem I have with this is creating a single flag for all of these extra metrics, and also the name is just very generic with no specifics. If I'm a user and i see "advancedStatistics" I have no idea what that means. Also there's nothing that really makes this advanced per se, it's just more stats.
Grouping together a bunch of random statistics with a single on/off doesn't make sense to me because all of these extra statistics will have different levels of performance hits and users might only want some of them. Someone might want extra networking stats but doesn't care about the other stuff you mentioned.
So I think that we probably need multiple flags to make it more fine grained. I view it similarly to the advisory configuration on a policy where you can control which advisories are sent. I think different stats that are unrelated should be grouped together under a different flag to turn them on or off. Obviously this is bridge related so the flag could be called some like advancedBridgeStats
or advancedNetworkStats
or whatever.
Null guard added in latest commit 1e94832 |
Parameter renamed in latest commit 1e948432 |
- Rename to advancedNetworkStatistics - Add unit test to cover queue and topic use case - Improve unit tests to confirm network stats do not incorrectly increment on non-network enqueue/dequeue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, the new property name is more descriptive and a bit better
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New property name is much better and the feature is disabled by default, so it's all good for me.
PolicyEntry option advancedNetworkStatisticsEnabled (default: false)
[AdvancedNetworkStatistics]
This change introduces the configuration guard for advancedNetworkStatistics as well as two simple metrics to provide fine-grained counting for network enqueue and dequeue counts that are enabled behind this config flag.
Usage notes: