Skip to content
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

Add statistics annotation WIP #8163

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

psiinon
Copy link
Member

@psiinon psiinon commented Nov 2, 2023

Just implemented one initially for feedback.
If this looks good then will annotate the rest of the core ones.
The add-ons will not be able to use this until after a full release..

Signed-off-by: Simon Bennetts <psiinon@gmail.com>
@kingthorin
Copy link
Member

I'll check if there's a way to have labeler skip if "enhancement" is already applied.

Comment on lines +73 to +78
@ZapStatsKey(
name = "stats.break.hit",
scope = "global",
type = "counter",
description = "The number of times a break point has been hit",
version = "2.11.0")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we make it actually replace: Stats.incCounter(ExtensionBreak.BREAK_POINT_HIT_STATS); ?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To be clear I'm somewhat naive about annotations, I don't know if we can actually put the annotation inline and have it do the action.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

None yet

3 participants