Package io.sentry.spring
Class SentryTaskDecorator
- java.lang.Object
-
- io.sentry.spring.SentryTaskDecorator
-
- All Implemented Interfaces:
org.springframework.core.task.TaskDecorator
public final class SentryTaskDecorator extends java.lang.Object implements org.springframework.core.task.TaskDecoratorSets a current hub on a thread running aRunnablegiven by parameter. Used to propagate the currentIHubon the thread executing async task - like MVC controller methods returning aCallableor Spring beans methods annotated withAsync.
-
-
Constructor Summary
Constructors Constructor Description SentryTaskDecorator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull java.lang.Runnabledecorate(@NotNull java.lang.Runnable runnable)
-