opentracing-contrib / java-spring-web

OpenTracing Spring Web instrumentation
Apache License 2.0
107 stars 59 forks source link

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

Open mihkelmuur opened 2 years ago

mihkelmuur commented 2 years ago

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()

bzdgn commented 2 years ago

Is there any progress for the fix for this issue?