springBootStarterWebDebugQpsAutoConfiguration top-level property
- @AutoConfigurationModule(build: AutoConfigurationBuild('spring.web.debug.qps.enabled', whenMissing: BuildInclusion.never), platform: ModulePlatform.native)
final
The debug feature qps: requests per second, logged and answered by
the actuator's qps endpoint. In the build only with
spring.web.debug.qps.enabled: true: without it the application has
no code that counts its requests.
requestRateFilter(RequestRateFilter): the first filter, counts the requests of its isolate;requestRates(RequestRates), in the application's first isolate: the rate of every isolate and of all together, eachspring.web.debug.qps.log-interval.
Implementation
@AutoConfigurationModule(
build: AutoConfigurationBuild(
'spring.web.debug.qps.enabled',
whenMissing: BuildInclusion.never,
),
platform: ModulePlatform.native,
)
final BeanModule springBootStarterWebDebugQpsAutoConfiguration = BeanModule(
'springBootStarterWebDebugQpsAutoConfiguration',
[
BeanDefinition<RequestRateFilter>(
name: 'requestRateFilter',
types: const [RequestRateFilter, WebFilter, Ordered, IsolateReporter],
source: _qps,
create: (_) => RequestRateFilter(),
),
BeanDefinition<RequestRates>(
name: 'requestRates',
types: const [
RequestRates,
SmartLifecycle,
Lifecycle,
PrimaryIsolateHandler,
],
source: _qps,
conditions: const [
ConditionGroup('$_qps.requestRates', [ConditionalOnPrimaryIsolate()]),
],
create: (r) => RequestRates(
r.dependency<RequestRateFilter>(),
r.dependency<IsolateReports>(),
interval: r.dependency<WebDebugSettings>().qps.logInterval,
),
),
],
);