Skip to content

support dynamic tags in @Counted and @Timed annotations #46007

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

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Conversation

doumdoum
Copy link

@doumdoum doumdoum commented Jun 18, 2025

Aligns the @Counted annotation with the @Timed annotation to support dynamic tags.

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Jun 18, 2025
@wilkinsona
Copy link
Member

Thanks for the proposal.

I think it would be better to support @MeterTag in a manner that's similar to the existing support for @SpanTag. Would you like to update this PR along those lines? Specifically, we could automatically create the MeterTagAnnotationHandler that uses the bean factory to retrieve the ValueResolver and provides a SpEL-based expression resolver.

@wilkinsona wilkinsona added status: waiting-for-feedback We need additional information before we can continue labels Jun 18, 2025
@doumdoum doumdoum force-pushed the add-meter-tag-to-counter branch 2 times, most recently from 697241a to 70f356e Compare June 20, 2025 16:57
@doumdoum doumdoum changed the title support dynamic tags in @Counted annotation support dynamic tags in @Counted and @Timed annotations Jun 23, 2025
@doumdoum
Copy link
Author

@wilkinsona i addressed your comments.
Thx for your review.

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue labels Jun 23, 2025
Copy link
Member

@wilkinsona wilkinsona left a comment

Choose a reason for hiding this comment

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

Thanks for the updates, @doumdoum. I've left a few comments for your consideration. The build is also failing at the moment. Please build your changes locally and make sure that the build is successful.

@wilkinsona wilkinsona added status: waiting-for-feedback We need additional information before we can continue and removed status: feedback-provided Feedback has been provided labels Jun 25, 2025
@doumdoum doumdoum force-pushed the add-meter-tag-to-counter branch from ef646ef to ab32879 Compare June 25, 2025 21:52
@doumdoum doumdoum requested a review from wilkinsona June 26, 2025 07:10
doumdoum added 7 commits June 26, 2025 13:08
Signed-off-by: Dominique Villard <[email protected]>
…it so that it parses expressions only once

Signed-off-by: Dominique Villard <[email protected]>
Signed-off-by: Dominique Villard <[email protected]>
Signed-off-by: Dominique Villard <[email protected]>
@doumdoum doumdoum force-pushed the add-meter-tag-to-counter branch from bf5aa73 to 5ba8b83 Compare June 26, 2025 11:09
@doumdoum doumdoum requested a review from wilkinsona June 26, 2025 11:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting-for-feedback We need additional information before we can continue status: waiting-for-triage An issue we've not yet triaged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants