Allow tagsBasedOnJoinPoint to override extraTags with CountedAspect #2461
Labels
enhancement
A general enhancement
module: micrometer-core
An issue that is related to our core module
Milestone
When overwriting the
extraTags
in Aspect, the behavior is different -extraTags
can be replaced in theTimedAspect
but inCountedAspect
as below.I have a function with extra tags like
When I overwrite the
extra
tag inTimedAspect
The
extra
changed toAA
successfully.But when I use some similar code in
CountedAspect
it failed.The value is still
B
.It is because of the different orders when applying the
ProceedingJoinPoint
tagsmicrometer/micrometer-core/src/main/java/io/micrometer/core/aop/CountedAspect.java
Line 148 in 939e0e4
micrometer/micrometer-core/src/main/java/io/micrometer/core/aop/TimedAspect.java
Line 192 in 939e0e4
Can we make them in the same order?
The text was updated successfully, but these errors were encountered: