Skip to content

Add auto-configuration for CountedAspect and TimedAspect#37626

Closed
jonatan-ivanov wants to merge 1 commit intospring-projects:mainfrom
jonatan-ivanov:metrics-aspects
Closed

Add auto-configuration for CountedAspect and TimedAspect#37626
jonatan-ivanov wants to merge 1 commit intospring-projects:mainfrom
jonatan-ivanov:metrics-aspects

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