parent
b4ed3fbcd0
commit
41f8b6926f
|
|
@ -26,7 +26,7 @@ import static org.springframework.scheduling.config.ScheduledTaskObservationDocu
|
|||
/**
|
||||
* Default implementation for {@link ScheduledTaskObservationConvention}.
|
||||
* @author Brian Clozel
|
||||
* @since 6.1.0
|
||||
* @since 6.1
|
||||
*/
|
||||
public class DefaultScheduledTaskObservationConvention implements ScheduledTaskObservationConvention {
|
||||
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@ import org.springframework.util.ClassUtils;
|
|||
* Context that holds information for observation metadata collection
|
||||
* during the {@link ScheduledTaskObservationDocumentation#TASKS_SCHEDULED_EXECUTION execution of scheduled tasks}.
|
||||
* @author Brian Clozel
|
||||
* @since 6.1.0
|
||||
* @since 6.1
|
||||
*/
|
||||
public class ScheduledTaskObservationContext extends Observation.Context {
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,7 @@ import io.micrometer.observation.ObservationConvention;
|
|||
* Interface for an {@link ObservationConvention} for
|
||||
* {@link ScheduledTaskObservationDocumentation#TASKS_SCHEDULED_EXECUTION scheduled task executions}.
|
||||
* @author Brian Clozel
|
||||
* @since 6.1.0
|
||||
* @since 6.1
|
||||
*/
|
||||
public interface ScheduledTaskObservationConvention extends ObservationConvention<ScheduledTaskObservationContext> {
|
||||
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import io.micrometer.observation.docs.ObservationDocumentation;
|
|||
* <p>This class is used by automated tools to document KeyValues attached to the {@code @Scheduled} observations.
|
||||
*
|
||||
* @author Brian Clozel
|
||||
* @since 6.1.0
|
||||
* @since 6.1
|
||||
*/
|
||||
public enum ScheduledTaskObservationDocumentation implements ObservationDocumentation {
|
||||
|
||||
|
|
|
|||
|
|
@ -138,7 +138,7 @@ public class ScheduledTaskRegistrar implements ScheduledTaskHolder, Initializing
|
|||
|
||||
/**
|
||||
* Return the {@link ObservationRegistry} for this registrar.
|
||||
* @since 6.1.0
|
||||
* @since 6.1
|
||||
*/
|
||||
@Nullable
|
||||
public ObservationRegistry getObservationRegistry() {
|
||||
|
|
@ -147,7 +147,7 @@ public class ScheduledTaskRegistrar implements ScheduledTaskHolder, Initializing
|
|||
|
||||
/**
|
||||
* Configure an {@link ObservationRegistry} to record observations for scheduled tasks.
|
||||
* @since 6.1.0
|
||||
* @since 6.1
|
||||
*/
|
||||
public void setObservationRegistry(@Nullable ObservationRegistry observationRegistry) {
|
||||
this.observationRegistry = observationRegistry;
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ public class ScheduledMethodRunnable implements Runnable {
|
|||
* @param target the target instance to call the method on
|
||||
* @param method the target method to call
|
||||
* @param observationRegistrySupplier a supplier for the observation registry to use
|
||||
* @since 6.1.0
|
||||
* @since 6.1
|
||||
*/
|
||||
public ScheduledMethodRunnable(Object target, Method method, Supplier<ObservationRegistry> observationRegistrySupplier) {
|
||||
this.target = target;
|
||||
|
|
|
|||
|
|
@ -206,7 +206,7 @@ public class HttpWebHandlerAdapter extends WebHandlerDecorator implements HttpHa
|
|||
}
|
||||
|
||||
/**
|
||||
* Configure a {@link ObservationRegistry} for recording server exchange observations.
|
||||
* Configure an {@link ObservationRegistry} for recording server exchange observations.
|
||||
* By default, a {@link ObservationRegistry#NOOP no-op} instance will be used.
|
||||
* @param observationRegistry the observation registry to use
|
||||
* @since 6.1
|
||||
|
|
|
|||
|
|
@ -371,7 +371,7 @@ public final class WebHttpHandlerBuilder {
|
|||
}
|
||||
|
||||
/**
|
||||
* Configure a {@link ObservationRegistry} for recording server exchange observations.
|
||||
* Configure an {@link ObservationRegistry} for recording server exchange observations.
|
||||
* By default, a {@link ObservationRegistry#NOOP no-op} registry will be configured.
|
||||
* @param observationRegistry the observation registry
|
||||
* @since 6.1
|
||||
|
|
|
|||
|
|
@ -41,9 +41,9 @@ public class ExceptionHandlingWebHandler extends WebHandlerDecorator {
|
|||
/**
|
||||
* Name of the {@link ServerWebExchange#getAttributes() attribute} that
|
||||
* contains the exception handled by {@link WebExceptionHandler WebExceptionHandlers}.
|
||||
* @since 6.0.8
|
||||
* @since 6.1
|
||||
*/
|
||||
public static String HANDLED_WEB_EXCEPTION = ExceptionHandlingWebHandler.class.getSimpleName() + ".handledException";
|
||||
public static final String HANDLED_WEB_EXCEPTION = ExceptionHandlingWebHandler.class.getSimpleName() + ".handledException";
|
||||
|
||||
private final List<WebExceptionHandler> exceptionHandlers;
|
||||
|
||||
|
|
|
|||
|
|
@ -105,7 +105,7 @@ class HttpWebHandlerAdapterObservabilityTests {
|
|||
|
||||
private Optional<ServerRequestObservationContext> observationContext;
|
||||
|
||||
public HttpStatusSuccessStubWebHandler(HttpStatus responseStatus) {
|
||||
HttpStatusSuccessStubWebHandler(HttpStatus responseStatus) {
|
||||
this.responseStatus = responseStatus;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue