Package io.sentry.spring.jakarta.webflux
Class AbstractSentryWebFilter
java.lang.Object
io.sentry.spring.jakarta.webflux.AbstractSentryWebFilter
- All Implemented Interfaces:
org.springframework.web.server.WebFilter
- Direct Known Subclasses:
SentryWebFilter,SentryWebFilterWithThreadLocalAccessor
@Experimental
public abstract class AbstractSentryWebFilter
extends Object
implements org.springframework.web.server.WebFilter
Manages
Scope in Webflux request processing.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFinally(@NotNull org.springframework.web.server.ServerWebExchange serverWebExchange, @NotNull io.sentry.IHub requestHub, @Nullable io.sentry.ITransaction transaction) protected voiddoFirst(@NotNull org.springframework.web.server.ServerWebExchange serverWebExchange, @NotNull io.sentry.IHub requestHub) protected voidprotected @Nullable io.sentry.ITransactionmaybeStartTransaction(@NotNull io.sentry.IHub requestHub, @NotNull org.springframework.http.server.reactive.ServerHttpRequest request) protected booleanshouldTraceRequest(@NotNull io.sentry.IHub hub, @NotNull org.springframework.http.server.reactive.ServerHttpRequest request) protected @NotNull io.sentry.ITransactionstartTransaction(@NotNull io.sentry.IHub hub, @NotNull org.springframework.http.server.reactive.ServerHttpRequest request, @Nullable io.sentry.TransactionContext transactionContext) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.web.server.WebFilter
filter
-
Field Details
-
SENTRY_HUB_KEY
- See Also:
-
-
Constructor Details
-
AbstractSentryWebFilter
public AbstractSentryWebFilter(@NotNull @NotNull io.sentry.IHub hub)
-
-
Method Details
-
maybeStartTransaction
@Nullable protected @Nullable io.sentry.ITransaction maybeStartTransaction(@NotNull @NotNull io.sentry.IHub requestHub, @NotNull @NotNull org.springframework.http.server.reactive.ServerHttpRequest request) -
doFinally
protected void doFinally(@NotNull @NotNull org.springframework.web.server.ServerWebExchange serverWebExchange, @NotNull @NotNull io.sentry.IHub requestHub, @Nullable @Nullable io.sentry.ITransaction transaction) -
doFirst
protected void doFirst(@NotNull @NotNull org.springframework.web.server.ServerWebExchange serverWebExchange, @NotNull @NotNull io.sentry.IHub requestHub) -
doOnError
protected void doOnError(@Nullable @Nullable io.sentry.ITransaction transaction, @NotNull @NotNull Throwable e) -
shouldTraceRequest
protected boolean shouldTraceRequest(@NotNull @NotNull io.sentry.IHub hub, @NotNull @NotNull org.springframework.http.server.reactive.ServerHttpRequest request) -
startTransaction
@NotNull protected @NotNull io.sentry.ITransaction startTransaction(@NotNull @NotNull io.sentry.IHub hub, @NotNull @NotNull org.springframework.http.server.reactive.ServerHttpRequest request, @Nullable @Nullable io.sentry.TransactionContext transactionContext)
-