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:
@@ -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>
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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> {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
/**
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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 })
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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<>();
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
@@ -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> {
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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" },
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user