You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #23818 support for Task Execution and Scheduling Metrics was added..
In it the name for the "executorServiceName" of the auto registered ThreadPoolTaskExecutor and ThreadPoolTaskScheduler is identitcal ("application"). This means that the only the metrics of one executor are used.
Here is an example test cases demonstrating the problem.
The same problem will occur when I register my own custom beans.
e.g. when I have myCustomTaskScheduler and myCustomTaskExecutor then only the value of one of them will be monitored.
I noticed this because we have our own metrics, that are slightly different then the ones configured here and I was trying to adapt our usage to use MeterFilter in order to rely on the Spring Boot auto configuration.
The text was updated successfully, but these errors were encountered:
snicoll
changed the title
Metrics for ThreadPoolTaskScheduler are overridden by the metrics of ThreadPoolTaskExecutor
Metrics for ThreadPoolTaskScheduler can conflict with the metrics of ThreadPoolTaskExecutor if they share the same bean name prefix
Nov 9, 2021
In #23818 support for Task Execution and Scheduling Metrics was added..
In it the name for the "executorServiceName" of the auto registered
ThreadPoolTaskExecutor
andThreadPoolTaskScheduler
is identitcal ("application"). This means that the only the metrics of one executor are used.Here is an example test cases demonstrating the problem.
The same problem will occur when I register my own custom beans.
e.g. when I have
myCustomTaskScheduler
andmyCustomTaskExecutor
then only the value of one of them will be monitored.I noticed this because we have our own metrics, that are slightly different then the ones configured here and I was trying to adapt our usage to use
MeterFilter
in order to rely on the Spring Boot auto configuration.The text was updated successfully, but these errors were encountered: