Skip to content

Support @MeterTag on @Counted and @Timed methods #46007

Closed
doumdoum wants to merge 7 commits into
spring-projects:mainfrom
doumdoum:add-meter-tag-to-counter
Closed

Support @MeterTag on @Counted and @Timed methods #46007
doumdoum wants to merge 7 commits into
spring-projects:mainfrom
doumdoum:add-meter-tag-to-counter

Conversation

@doumdoum

@doumdoum doumdoum commented Jun 18, 2025

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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
Copy Markdown
Contributor 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

@wilkinsona wilkinsona left a comment

Copy link
Copy Markdown
Member

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 <dominique.villard@doctolib.com>
…it so that it parses expressions only once

Signed-off-by: Dominique Villard <dominique.villard@doctolib.com>
Signed-off-by: Dominique Villard <dominique.villard@doctolib.com>
Signed-off-by: Dominique Villard <dominique.villard@doctolib.com>
Signed-off-by: Dominique Villard <dominique.villard@doctolib.com>
Signed-off-by: Dominique Villard <dominique.villard@doctolib.com>
Signed-off-by: Dominique Villard <dominique.villard@doctolib.com>
@doumdoum

doumdoum commented Jul 1, 2025

Copy link
Copy Markdown
Contributor Author

@wilkinsona should i do the conflicts resolution ?

@wilkinsona

Copy link
Copy Markdown
Member

Thanks for the offer, @doumdoum, but please don't worry about it. We can take care of the conflicts as part of merging the contribution.

@wilkinsona wilkinsona self-assigned this Jul 2, 2025
@wilkinsona wilkinsona changed the title support dynamic tags in @Counted and @Timed annotations Support @MeterTag on @Counted and @Timed methods Jul 2, 2025
@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: waiting-for-triage An issue we've not yet triaged labels Jul 2, 2025
@wilkinsona wilkinsona modified the milestones: 4.0.x, 4.0.0-M1 Jul 2, 2025
wilkinsona pushed a commit that referenced this pull request Jul 2, 2025
Signed-off-by: Dominique Villard <dominique.villard@doctolib.com>

See gh-46007
@wilkinsona wilkinsona closed this in d251321 Jul 2, 2025
@wilkinsona

Copy link
Copy Markdown
Member

Thanks very much, @doumdoum, and congratulations on making your first contribution to Spring Boot.

@doumdoum

doumdoum commented Jul 2, 2025

Copy link
Copy Markdown
Contributor Author

Thx for your great hard work !!!

@alvesb-fd

This comment was marked as outdated.

@philwebb

This comment was marked as outdated.

@alvesb-fd

This comment was marked as outdated.

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

Labels

type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants