Skip to content

opentracing-spring-web-starter incompatible with Spring Boot 2.6 #147

@mihkelmuur

Description

@mihkelmuur

After update to Spring Boot 2.6 an application relying on opentracing-spring-web-starter fails to start:

2021-11-30T11:56:22.972+0000 ERROR o.s.b.d.LoggingFailureAnalysisReporter   

***************************
APPLICATION FAILED TO START
***************************

Description:

An attempt was made to call a method that does not exist. The attempt was made from the following location:

    io.opentracing.contrib.spring.web.starter.SkipPatternAutoConfiguration$ManagementSkipPatternProviderConfig.getPatternForManagementServerProperties(SkipPatternAutoConfiguration.java:68)

The following method did not exist:

    'org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties$Servlet org.springframework.boot.actuate.autoconfigure.web.server.ManagementServerProperties.getServlet()'
...

The Javadoc on ManagementServerProperties.Servlet.getContextPath() suggest to replace ManagementServerProperties.getServlet().getContextPath() with ManagementServerProperties.getBasePath():

Deprecated. since 2.4.0 for removal in 2.6.0 in favor of ManagementServerProperties.getBasePath()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions