Deprecates unnecessarily public types to ease burden (#1638)

Types like Properties and AutoConfiguration and internal utilities are
routinely marked public when they needn't be. This causes toil as we
have to preserve signatures even if they were made public by accident.

This deprecates the mass of types marked public to give some hope of
less undifferentiated toil in the future. Ideally, future change will
consider greatly if a type should be public or not as doing so haunts
maintainers.
This commit is contained in:
Adrian Cole
2020-05-16 13:09:24 +08:00
committed by GitHub
parent f9821495e1
commit d4088dec9c
79 changed files with 230 additions and 1 deletions

View File

@@ -330,6 +330,7 @@
<artifactId>spring-boot-autoconfigure-processor</artifactId>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>

View File

@@ -42,7 +42,10 @@ import org.springframework.core.annotation.AnnotationUtils;
* @author Marcin Grzejszczak
* @since 1.0.0
* @see SpanName
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class DefaultSpanNamer implements SpanNamer {
private static boolean isDefaultToString(Object delegate, String spanName) {

View File

@@ -26,7 +26,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 1.0.11
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth")
public class SleuthProperties {

View File

@@ -70,7 +70,10 @@ import org.springframework.util.StringUtils;
* @author Marcin Grzejszczak
* @author Tim Ysewyn
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.enabled", matchIfMissing = true)
@EnableConfigurationProperties(SleuthProperties.class)

View File

@@ -35,7 +35,10 @@ import org.springframework.core.env.PropertySource;
* @author Dave Syer
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceEnvironmentPostProcessor implements EnvironmentPostProcessor {
private static final String PROPERTY_SOURCE_NAME = "defaultProperties";

View File

@@ -28,7 +28,10 @@ import org.springframework.context.annotation.Configuration;
*
* @author Jesus Alonso
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.scheduled.enabled", matchIfMissing = true)
@EnableConfigurationProperties({ SleuthAsyncProperties.class,

View File

@@ -35,7 +35,10 @@ import org.springframework.scheduling.annotation.AsyncConfigurer;
*
* @author Dave Syer
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnBean(AsyncConfigurer.class)
@AutoConfigureBefore(AsyncDefaultAutoConfiguration.class)

View File

@@ -52,7 +52,10 @@ import org.springframework.scheduling.annotation.AsyncConfigurerSupport;
* @since 1.0.0
* @see LazyTraceExecutor
* @see TraceAsyncAspect
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties({ SleuthAsyncProperties.class,
SleuthSchedulingProperties.class })

View File

@@ -29,7 +29,10 @@ import org.springframework.scheduling.annotation.AsyncConfigurerSupport;
*
* @author Dave Syer
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class LazyTraceAsyncCustomizer extends AsyncConfigurerSupport {
private final BeanFactory beanFactory;

View File

@@ -35,7 +35,10 @@ import org.springframework.core.task.AsyncTaskExecutor;
*
* @author Marcin Grzejszczak
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class LazyTraceAsyncTaskExecutor implements AsyncTaskExecutor {
private static final Log log = LogFactory.getLog(LazyTraceAsyncTaskExecutor.class);

View File

@@ -32,7 +32,10 @@ import org.springframework.cloud.sleuth.SpanNamer;
*
* @author Dave Syer
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class LazyTraceExecutor implements Executor {
private static final Log log = LogFactory.getLog(LazyTraceExecutor.class);

View File

@@ -39,7 +39,10 @@ import org.springframework.util.concurrent.ListenableFuture;
*
* @author Marcin Grzejszczak
* @since 1.0.10
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@SuppressWarnings("serial")
public class LazyTraceThreadPoolTaskExecutor extends ThreadPoolTaskExecutor {

View File

@@ -26,8 +26,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Jesus Alonso
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties(prefix = "spring.sleuth.async")
public class SleuthAsyncProperties {

View File

@@ -36,7 +36,10 @@ import org.springframework.util.ReflectionUtils;
* @author Marcin Grzejszczak
* @since 1.0.0
* @see Tracer
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Aspect
public class TraceAsyncAspect {

View File

@@ -32,7 +32,10 @@ import org.springframework.util.concurrent.ListenableFuture;
* @since 1.0.0
* @see brave.propagation.CurrentTraceContext#wrap(Runnable)
* @see brave.propagation.CurrentTraceContext#wrap(Callable)
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceAsyncListenableTaskExecutor implements AsyncListenableTaskExecutor {
private final AsyncListenableTaskExecutor delegate;

View File

@@ -33,7 +33,10 @@ import org.springframework.cloud.sleuth.SpanNamer;
* @author Spencer Gibb
* @author Marcin Grzejszczak
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceCallable<V> implements Callable<V> {
/**

View File

@@ -30,7 +30,10 @@ import org.springframework.cloud.sleuth.SpanNamer;
* @author Spencer Gibb
* @author Marcin Grzejszczak
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceRunnable implements Runnable {
/**

View File

@@ -36,7 +36,10 @@ import org.springframework.cloud.sleuth.SpanNamer;
*
* @author Gaurav Rai Mazra
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceableExecutorService implements ExecutorService {
final ExecutorService delegate;

View File

@@ -29,7 +29,10 @@ import org.springframework.beans.factory.BeanFactory;
*
* @author Gaurav Rai Mazra
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceableScheduledExecutorService extends TraceableExecutorService
implements ScheduledExecutorService {

View File

@@ -42,7 +42,10 @@ import org.springframework.context.annotation.Configuration;
*
* @author Marcin Grzejszczak
* @since 2.2.1
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@AutoConfigureAfter(TraceAutoConfiguration.class)
@ConditionalOnClass(CircuitBreaker.class)

View File

@@ -23,7 +23,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.2.1
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.circuitbreaker")
public class SleuthCircuitBreakerProperties {

View File

@@ -27,7 +27,10 @@ import brave.Tracer;
*
* @param <T> type returned by the fallback
* @since 2.2.1
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceFunction<T> implements Function<Throwable, T> {
private final Tracer tracer;

View File

@@ -27,7 +27,10 @@ import brave.Tracer;
*
* @param <T> type returned by the supplier
* @since 2.2.1
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceSupplier<T> implements Supplier<T> {
private final Tracer tracer;

View File

@@ -35,6 +35,7 @@ import io.grpc.inprocess.InProcessChannelBuilder;
*
* @author Tyler Van Gorder
*/
// TODO: research why we need to continue to maintain this given current libraries
public class SpringAwareManagedChannelBuilder {
private List<GrpcManagedChannelBuilderCustomizer> customizers;

View File

@@ -40,7 +40,10 @@ import org.springframework.context.annotation.Bean;
* brave-instrumentation-grpc are on the classpath.
*
* @author Tyler Van Gorder
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConditionalOnClass({ GrpcTracing.class, GRpcGlobalInterceptor.class })
@ConditionalOnProperty(value = "spring.sleuth.grpc.enabled", matchIfMissing = true)
@ConditionalOnBean(RpcTracing.class)

View File

@@ -37,7 +37,10 @@ import org.springframework.context.annotation.Configuration;
* @author Marcin Grzejszczak
* @see SleuthHystrixConcurrencyStrategy
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@AutoConfigureAfter(TraceAutoConfiguration.class)
@ConditionalOnClass(HystrixCommand.class)

View File

@@ -46,7 +46,10 @@ import org.springframework.cloud.sleuth.instrument.async.TraceCallable;
*
* @author Marcin Grzejszczak
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class SleuthHystrixConcurrencyStrategy extends HystrixConcurrencyStrategy {
private static final String HYSTRIX_COMPONENT = "hystrix";

View File

@@ -22,7 +22,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* Sleuth Hystrix settings.
*
* @author Daniel Albuquerque
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.hystrix.strategy")
public class SleuthHystrixConcurrencyStrategyProperties {

View File

@@ -40,7 +40,10 @@ import org.springframework.kafka.config.StreamsBuilderFactoryBean;
* Auto-configuration} enables Kafka Streams span creation and reporting.
*
* @author Tim te Beek
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnBean(Tracing.class)
@AutoConfigureAfter({ TraceAutoConfiguration.class })

View File

@@ -23,7 +23,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth")
public class SleuthMessagingProperties {

View File

@@ -16,6 +16,8 @@
package org.springframework.cloud.sleuth.instrument.messaging;
import brave.propagation.B3Propagation;
/**
* Contains trace related messaging headers. The deprecated headers contained `-` which
* for example in the JMS specs is invalid. That's why the public constants in this class
@@ -23,7 +25,9 @@ package org.springframework.cloud.sleuth.instrument.messaging;
*
* @author Marcin Grzejszczak
* @since 1.0.4
* @deprecated These names are obviated by {@link B3Propagation.Format#SINGLE}.
*/
@Deprecated
public final class TraceMessageHeaders {
/**

View File

@@ -86,7 +86,10 @@ import org.springframework.util.ReflectionUtils;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnBean(Tracing.class)
@ConditionalOnClass(MessagingTracing.class)

View File

@@ -39,7 +39,10 @@ import org.springframework.messaging.support.MessageHeaderAccessor;
* @author Spencer Gibb
* @since 1.0.0
* @see TracingChannelInterceptor
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(GlobalChannelInterceptor.class)
@ConditionalOnBean(Tracing.class)

View File

@@ -58,7 +58,10 @@ import org.springframework.util.ClassUtils;
* which is less sensitive to message manipulation by other interceptors.
*
* @author Marcin Grzejszczak
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public final class TracingChannelInterceptor extends ChannelInterceptorAdapter
implements ExecutorChannelInterceptor {

View File

@@ -37,7 +37,10 @@ import org.springframework.web.socket.config.annotation.StompEndpointRegistry;
* @author Dave Syer
* @since 1.0.0
* @see AbstractWebSocketMessageBrokerConfigurer
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(DelegatingWebSocketMessageBrokerConfiguration.class)
@ConditionalOnBean(Tracing.class)

View File

@@ -37,7 +37,10 @@ import org.springframework.context.annotation.Configuration;
* @author Spencer Gibb
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.opentracing.enabled", matchIfMissing = true)
@ConditionalOnBean(Tracing.class)

View File

@@ -23,7 +23,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.opentracing")
public class SleuthOpentracingProperties {

View File

@@ -36,7 +36,10 @@ import org.springframework.context.annotation.Configuration;
*
* @author Branden Cash
* @since 2.2.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnBean({ Tracing.class, Scheduler.class })
@AutoConfigureAfter({ TraceAutoConfiguration.class, QuartzAutoConfiguration.class })

View File

@@ -39,6 +39,8 @@ import org.springframework.context.ConfigurableApplicationContext;
* @author Stephane Maldini
* @since 2.0.0
*/
// TODO: this is public as it is used out of package, but unlikely intended to be
// non-internal
public abstract class ReactorSleuth {
private static final Log log = LogFactory.getLog(ReactorSleuth.class);

View File

@@ -23,7 +23,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.2
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.reactor")
public class SleuthReactorProperties {

View File

@@ -55,7 +55,10 @@ import static org.springframework.cloud.sleuth.instrument.reactor.TraceReactorAu
* @author Stephane Maldini
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.reactor.enabled", matchIfMissing = true)
@ConditionalOnClass(Mono.class)

View File

@@ -39,7 +39,10 @@ import org.springframework.context.annotation.Configuration;
*
* @author Chao Chang
* @since 2.2.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.redis.enabled", matchIfMissing = true)
@ConditionalOnBean({ Tracing.class, ClientResources.class })

View File

@@ -22,7 +22,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* Sleuth Redis properties.
*
* @author Daniel Albuquerque
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.redis")
public class TraceRedisProperties {

View File

@@ -41,7 +41,10 @@ import org.springframework.lang.Nullable;
* Auto-configuration} related to RPC based communication.
*
* @since 2.2.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(name = "spring.sleuth.rpc.enabled", havingValue = "true",
matchIfMissing = true)

View File

@@ -37,7 +37,10 @@ import org.springframework.context.annotation.Configuration;
*
* @author Shivang Shah
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@AutoConfigureAfter(TraceAutoConfiguration.class)
@ConditionalOnBean(Tracing.class)

View File

@@ -23,7 +23,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.rxjava.schedulers")
public class SleuthRxJavaSchedulersProperties {

View File

@@ -24,7 +24,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.scheduled")
public class SleuthSchedulingProperties {

View File

@@ -40,7 +40,10 @@ import org.springframework.cloud.sleuth.util.SpanNameUtil;
* @author Spencer Gibb
* @since 1.0.0
* @see Tracing
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Aspect
public class TraceSchedulingAspect {

View File

@@ -37,7 +37,10 @@ import org.springframework.context.annotation.Configuration;
* @author Spencer Gibb
* @since 1.0.0
* @see TraceSchedulingAspect
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnClass(name = "org.aspectj.lang.ProceedingJoinPoint")
@ConditionalOnProperty(value = "spring.sleuth.scheduled.enabled", matchIfMissing = true)

View File

@@ -23,7 +23,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.http.legacy")
public class SleuthHttpLegacyProperties {

View File

@@ -24,7 +24,10 @@ import org.springframework.boot.context.properties.NestedConfigurationProperty;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.web")
public class SleuthWebProperties {

View File

@@ -47,7 +47,10 @@ import org.springframework.lang.Nullable;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnBean(TraceWebAutoConfiguration.class)
@ConditionalOnProperty(name = "spring.sleuth.http.enabled", havingValue = "true",

View File

@@ -56,7 +56,10 @@ import org.springframework.web.context.request.async.WebAsyncTask;
* @since 1.0.0
* @see org.springframework.stereotype.Controller
* @see org.springframework.web.client.RestOperations
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@SuppressWarnings("ArgNamesWarningsInspection")
@Aspect
public class TraceWebAspect {

View File

@@ -53,7 +53,10 @@ import org.springframework.util.StringUtils;
* @author Marcin Grzejszczak
* @author Tim Ysewyn
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.web.enabled", matchIfMissing = true)
@ConditionalOnBean(Tracing.class)

View File

@@ -51,7 +51,10 @@ import org.springframework.web.server.WebFilterChain;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public final class TraceWebFilter implements WebFilter, Ordered {
/**

View File

@@ -32,7 +32,10 @@ import org.springframework.context.annotation.Configuration;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.web.enabled", matchIfMissing = true)
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.REACTIVE)

View File

@@ -52,7 +52,10 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
* @author Marcin Grzejszczak
* @author Spencer Gibb
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.web.enabled", matchIfMissing = true)
@ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET)

View File

@@ -44,7 +44,10 @@ import org.springframework.web.client.AsyncRestTemplate;
*
* @author Marcin Grzejszczak
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@SleuthWebClientEnabled
@ConditionalOnProperty(value = "spring.sleuth.web.async.client.enabled",

View File

@@ -62,7 +62,10 @@ import org.springframework.web.reactive.function.client.WebClient;
*
* @author Marcin Grzejszczak
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@SleuthWebClientEnabled
@ConditionalOnBean(HttpTracing.class)

View File

@@ -24,7 +24,9 @@ import feign.Retryer;
* Feign. For the 1.0.x stream we add it here.
*
* @author Ryan Baxter
* @deprecated This type will be removed in 3.0
*/
@Deprecated
public class NeverRetry implements Retryer {
/**

View File

@@ -23,7 +23,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Marcin Grzejszczak
* @since 2.0.2
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.feign")
public class SleuthFeignProperties {

View File

@@ -41,7 +41,10 @@ import org.springframework.cloud.openfeign.loadbalancer.FeignBlockingLoadBalance
* @since 2.2.0
* @see TraceLoadBalancerFeignClient
* @see FeignBlockingLoadBalancerClient
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceFeignBlockingLoadBalancerClient
extends FeignBlockingLoadBalancerClient {

View File

@@ -42,7 +42,10 @@ import org.springframework.context.annotation.Scope;
*
* @author Marcin Grzejszczak
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.feign.enabled", matchIfMissing = true)
@ConditionalOnClass({ Client.class, FeignContext.class })

View File

@@ -40,7 +40,10 @@ import org.springframework.cloud.openfeign.ribbon.LoadBalancerFeignClient;
*
* @author Marcin Grzejszczak
* @since 1.0.7
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TraceLoadBalancerFeignClient extends LoadBalancerFeignClient {
private static final Log log = LogFactory.getLog(TraceLoadBalancerFeignClient.class);

View File

@@ -35,7 +35,10 @@ import org.springframework.context.annotation.Configuration;
*
* @author Dave Syer
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.zuul.enabled", matchIfMissing = true)
@ConditionalOnWebApplication

View File

@@ -26,7 +26,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Arthur Gavlyukovskiy
* @since 1.0.12
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.log.slf4j")
public class SleuthSlf4jProperties {

View File

@@ -29,7 +29,10 @@ import org.springframework.context.annotation.Configuration;
/**
* @author Taras Danylchuk
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@ConditionalOnProperty(value = "spring.sleuth.enabled", matchIfMissing = true)
@AutoConfigureBefore(TraceAutoConfiguration.class)

View File

@@ -26,7 +26,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Taras Danylchuk
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.propagation.tag")
public class SleuthTagPropagationProperties {

View File

@@ -35,7 +35,10 @@ import static java.util.Objects.nonNull;
*
* @author Taras Danylchuk
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class TagPropagationFinishedSpanHandler extends FinishedSpanHandler {
private final SleuthProperties sleuthProperties;

View File

@@ -44,7 +44,10 @@ import org.springframework.util.Assert;
* @author Marcin Grzejszczak
* @author Adrian Cole
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class ProbabilityBasedSampler extends Sampler {
private final AtomicInteger counter = new AtomicInteger(0);

View File

@@ -33,7 +33,10 @@ import org.springframework.context.annotation.Configuration;
* @author Marcin Grzejszczak
* @see SamplerCondition
* @since 2.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(SamplerProperties.class)
// This is not auto-configuration, but it was in the past. Leaving the name as

View File

@@ -24,7 +24,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
* @author Marcin Grzejszczak
* @author Adrian Cole
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.sleuth.sampler")
public class SamplerProperties {

View File

@@ -27,7 +27,9 @@ import zipkin2.reporter.Reporter;
*
* @author Marcin Grzejszczak
* @since 2.0.0
* @deprecated This type will be removed in 3.0. Use io.zipkin.brave:brave-tests instead
*/
@Deprecated
public class ArrayListSpanReporter implements Reporter<Span> {
private final List<Span> spans = new ArrayList<>();

View File

@@ -23,7 +23,9 @@ import org.springframework.util.StringUtils;
*
* @author Adrian Cole
* @since 1.0.2
* @deprecated This type should have been internal. It will be hidden or removed in 3.0
*/
@Deprecated
public final class SpanNameUtil {
static final int MAX_NAME_LENGTH = 50;

View File

@@ -46,7 +46,10 @@ import org.springframework.lang.Nullable;
*
* @author Marcin Grzejszczak
* @since 2.1.1
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public final class TracingJmsListenerEndpointRegistry
extends JmsListenerEndpointRegistry {

View File

@@ -44,7 +44,10 @@ import org.springframework.util.StringUtils;
*
* @author Dave Syer
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class DefaultEndpointLocator implements EndpointLocator,
ApplicationListener<ServletWebServerInitializedEvent> {

View File

@@ -32,7 +32,10 @@ import org.springframework.web.client.RestTemplate;
*
* @author Marcin Grzejszczak
* @since 1.1.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
public class DefaultZipkinRestTemplateCustomizer implements ZipkinRestTemplateCustomizer {
private final ZipkinProperties zipkinProperties;

View File

@@ -60,7 +60,10 @@ import org.springframework.web.client.RestTemplate;
* @since 1.0.0
* @see ZipkinRestTemplateCustomizer
* @see DefaultZipkinRestTemplateCustomizer
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@Configuration(proxyBeanMethods = false)
@EnableConfigurationProperties(ZipkinProperties.class)
@ConditionalOnProperty(value = { "spring.sleuth.enabled", "spring.zipkin.enabled" },

View File

@@ -25,7 +25,10 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
*
* @author Spencer Gibb
* @since 1.0.0
* @deprecated This type should have never been public and will be hidden or removed in
* 3.0
*/
@Deprecated
@ConfigurationProperties("spring.zipkin")
public class ZipkinProperties {