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 auto-configuration for CountedAspect and TimedAspect #37626

Closed

Conversation

jonatan-ivanov
Copy link
Member

Similarly to #35191, this PR adds support for auto-configuring CountedAspect and TimedAspect, which enables the usage of @Counted and @Timed.

@jonatan-ivanov jonatan-ivanov added the status: waiting-for-triage An issue we've not yet triaged label Sep 29, 2023
@Bean
@ConditionalOnMissingBean
CountedAspect countedAspect(MeterRegistry registry) {
return new CountedAspect(registry);
Copy link
Member Author

Choose a reason for hiding this comment

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

@marcingrzejszczak Shouldn't we add MeterTagAnnotationHandler to CountedAspect too? Or is it intentionally left out?

Copy link
Contributor

Choose a reason for hiding this comment

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

FTR: We decided to not get the MeterTagAnnotationHandler in, because that wouldn't make it into RC1. I'm going to merge the PR as it is.

@mhalbritter mhalbritter added this to the 3.2.x milestone Sep 29, 2023
@mhalbritter mhalbritter added type: enhancement A general enhancement theme: observability Issues related to observability and removed status: waiting-for-triage An issue we've not yet triaged labels Sep 29, 2023
@mhalbritter mhalbritter self-assigned this Sep 29, 2023
@mhalbritter
Copy link
Contributor

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
theme: observability Issues related to observability type: enhancement A general enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants