Skip to content

Property management.metrics.web.server.auto-time-requests is not taken into account in case of reactive web application #13895

@EdgarsM

Description

@EdgarsM

In current Spring Boot version (2.0.3.RELEASE) configuration property management.metrics.web.server.auto-time-requests is not taken into account so it is not possible to disable automatic incoming HTTP request timing. It might be an issue if web application acts as a proxy (e.g. as in case of spring-cloud-gateway) and request URIs contain variables that are not replaced by placeholders. As a result metrics get accumulated (because there are separate metric instead of single one containing variable placeholder just as in case of Spring controllers) until OutOfMemoryError occurs.
Current workaround is to exclude org.springframework.boot.actuate.autoconfigure.metrics.web.reactive.WebFluxMetricsAutoConfiguration auto configuration.
Disabling auto request timing in case of reactive web application should work same as in case of servlet based web application (WebMvcMetricsAutoConfiguration).

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions