Class ReactorUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> reactor.core.publisher.Flux<T>withSentry(@NotNull reactor.core.publisher.Flux<T> flux) Writes the current SentryIHubto theContextand usesThreadLocalAccessorto propagate it.static <T> reactor.core.publisher.Mono<T>withSentry(@NotNull reactor.core.publisher.Mono<T> mono) Writes the current SentryIHubto theContextand usesThreadLocalAccessorto propagate it.static <T> reactor.core.publisher.Flux<T>withSentryHub(@NotNull reactor.core.publisher.Flux<T> flux, @NotNull io.sentry.IHub hub) Writes the given SentryIHubto theContextand usesThreadLocalAccessorto propagate it.static <T> reactor.core.publisher.Mono<T>withSentryHub(@NotNull reactor.core.publisher.Mono<T> mono, @NotNull io.sentry.IHub hub) Writes the given SentryIHubto theContextand usesThreadLocalAccessorto propagate it.static <T> reactor.core.publisher.Flux<T>withSentryNewMainHubClone(@NotNull reactor.core.publisher.Flux<T> flux) Writes a new SentryIHubcloned from the main hub to theContextand usesThreadLocalAccessorto propagate it.static <T> reactor.core.publisher.Mono<T>withSentryNewMainHubClone(@NotNull reactor.core.publisher.Mono<T> mono) Writes a new SentryIHubcloned from the main hub to theContextand usesThreadLocalAccessorto propagate it.
-
Constructor Details
-
ReactorUtils
public ReactorUtils()
-
-
Method Details
-
withSentry
@Experimental public static <T> reactor.core.publisher.Mono<T> withSentry(@NotNull @NotNull reactor.core.publisher.Mono<T> mono) Writes the current SentryIHubto theContextand usesThreadLocalAccessorto propagate it.This requires - reactor.core.publisher.Hooks#enableAutomaticContextPropagation() to be enabled - having `io.micrometer:context-propagation:1.0.2+` (provided by Spring Boot 3.0.3+) - having `io.projectreactor:reactor-core:3.5.3+` (provided by Spring Boot 3.0.3+)
-
withSentryNewMainHubClone
@Experimental public static <T> reactor.core.publisher.Mono<T> withSentryNewMainHubClone(@NotNull @NotNull reactor.core.publisher.Mono<T> mono) Writes a new SentryIHubcloned from the main hub to theContextand usesThreadLocalAccessorto propagate it.This requires - reactor.core.publisher.Hooks#enableAutomaticContextPropagation() to be enabled - having `io.micrometer:context-propagation:1.0.2+` (provided by Spring Boot 3.0.3+) - having `io.projectreactor:reactor-core:3.5.3+` (provided by Spring Boot 3.0.3+)
-
withSentryHub
@Experimental public static <T> reactor.core.publisher.Mono<T> withSentryHub(@NotNull @NotNull reactor.core.publisher.Mono<T> mono, @NotNull @NotNull io.sentry.IHub hub) Writes the given SentryIHubto theContextand usesThreadLocalAccessorto propagate it.This requires - reactor.core.publisher.Hooks#enableAutomaticContextPropagation() to be enabled - having `io.micrometer:context-propagation:1.0.2+` (provided by Spring Boot 3.0.3+) - having `io.projectreactor:reactor-core:3.5.3+` (provided by Spring Boot 3.0.3+)
-
withSentry
@Experimental public static <T> reactor.core.publisher.Flux<T> withSentry(@NotNull @NotNull reactor.core.publisher.Flux<T> flux) Writes the current SentryIHubto theContextand usesThreadLocalAccessorto propagate it.This requires - reactor.core.publisher.Hooks#enableAutomaticContextPropagation() to be enabled - having `io.micrometer:context-propagation:1.0.2+` (provided by Spring Boot 3.0.3+) - having `io.projectreactor:reactor-core:3.5.3+` (provided by Spring Boot 3.0.3+)
-
withSentryNewMainHubClone
@Experimental public static <T> reactor.core.publisher.Flux<T> withSentryNewMainHubClone(@NotNull @NotNull reactor.core.publisher.Flux<T> flux) Writes a new SentryIHubcloned from the main hub to theContextand usesThreadLocalAccessorto propagate it.This requires - reactor.core.publisher.Hooks#enableAutomaticContextPropagation() to be enabled - having `io.micrometer:context-propagation:1.0.2+` (provided by Spring Boot 3.0.3+) - having `io.projectreactor:reactor-core:3.5.3+` (provided by Spring Boot 3.0.3+)
-
withSentryHub
@Experimental public static <T> reactor.core.publisher.Flux<T> withSentryHub(@NotNull @NotNull reactor.core.publisher.Flux<T> flux, @NotNull @NotNull io.sentry.IHub hub) Writes the given SentryIHubto theContextand usesThreadLocalAccessorto propagate it.This requires - reactor.core.publisher.Hooks#enableAutomaticContextPropagation() to be enabled - having `io.micrometer:context-propagation:1.0.2+` (provided by Spring Boot 3.0.3+) - having `io.projectreactor:reactor-core:3.5.3+` (provided by Spring Boot 3.0.3+)
-