Skip to content

Sleuth causes early initialization of numerous beans, preventing them from being ServletContextAware #2074

@wilkinsona

Description

@wilkinsona

When Sleuth is used in a Servlet-based web application that's using Boot's Actuator, creation of sleuthSkipPatternProvider causes every endpoint bean and their dependencies to be initialized very early, and crucially before the servlet context is available. This results in the ServletContextAware contract not being honoured causing subsequent failures in Spring MVC.

Please see spring-projects/spring-boot#28952. It contains a description of the problem, a sample that reproduces it and some initial analysis that led to the creation of this issue.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions