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.TaskDecorator
Sets a current hub on a thread running aRunnable
given by parameter. Used to propagate the currentIHub
on the thread executing async task - like MVC controller methods returning aCallable
or 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.Runnable
decorate(@NotNull java.lang.Runnable runnable)
-