Class ReactorUtils
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T> reactor.core.publisher.Flux<T>
withSentry
(@NotNull reactor.core.publisher.Flux<T> flux) static <T> reactor.core.publisher.Mono<T>
withSentry
(@NotNull reactor.core.publisher.Mono<T> mono) static <T> reactor.core.publisher.Flux<T>
withSentryForkedRoots
(@NotNull reactor.core.publisher.Flux<T> flux) Writes a new SentryIScopes
forked from the main scopes to theContext
and usesThreadLocalAccessor
to propagate it.static <T> reactor.core.publisher.Mono<T>
withSentryForkedRoots
(@NotNull reactor.core.publisher.Mono<T> mono) Writes a new SentryIScopes
forked from the main scopes to theContext
and usesThreadLocalAccessor
to propagate it.static <T> reactor.core.publisher.Flux<T>
withSentryScopes
(@NotNull reactor.core.publisher.Flux<T> flux, @NotNull IScopes scopes) static <T> reactor.core.publisher.Mono<T>
withSentryScopes
(@NotNull reactor.core.publisher.Mono<T> mono, @NotNull IScopes scopes)
-
Constructor Details
-
ReactorUtils
public ReactorUtils()
-
-
Method Details
-
withSentry
public static <T> reactor.core.publisher.Mono<T> withSentry(@NotNull @NotNull reactor.core.publisher.Mono<T> mono) Writes the current SentryIScopes
to theContext
and usesThreadLocalAccessor
to 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+)
-
withSentryForkedRoots
public static <T> reactor.core.publisher.Mono<T> withSentryForkedRoots(@NotNull @NotNull reactor.core.publisher.Mono<T> mono) Writes a new SentryIScopes
forked from the main scopes to theContext
and usesThreadLocalAccessor
to 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+)
-
withSentryScopes
public static <T> reactor.core.publisher.Mono<T> withSentryScopes(@NotNull @NotNull reactor.core.publisher.Mono<T> mono, @NotNull @NotNull IScopes scopes) Writes the given SentryIScopes
to theContext
and usesThreadLocalAccessor
to 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
public static <T> reactor.core.publisher.Flux<T> withSentry(@NotNull @NotNull reactor.core.publisher.Flux<T> flux) Writes the current SentryIScopes
to theContext
and usesThreadLocalAccessor
to 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+)
-
withSentryForkedRoots
public static <T> reactor.core.publisher.Flux<T> withSentryForkedRoots(@NotNull @NotNull reactor.core.publisher.Flux<T> flux) Writes a new SentryIScopes
forked from the main scopes to theContext
and usesThreadLocalAccessor
to 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+)
-
withSentryScopes
public static <T> reactor.core.publisher.Flux<T> withSentryScopes(@NotNull @NotNull reactor.core.publisher.Flux<T> flux, @NotNull @NotNull IScopes scopes) Writes the given SentryIScopes
to theContext
and usesThreadLocalAccessor
to 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+)
-