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
IScope 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.IScopes requestScopes, @Nullable io.sentry.ITransaction transaction) protected voiddoFirst(@NotNull org.springframework.web.server.ServerWebExchange serverWebExchange, @NotNull io.sentry.IScopes requestScopes) protected voidprotected @Nullable io.sentry.ITransactionmaybeStartTransaction(@NotNull io.sentry.IScopes requestScopes, @NotNull org.springframework.http.server.reactive.ServerHttpRequest request, @NotNull String origin) protected booleanshouldTraceRequest(@NotNull io.sentry.IScopes scopes, @NotNull org.springframework.http.server.reactive.ServerHttpRequest request) protected @NotNull io.sentry.ITransactionstartTransaction(@NotNull io.sentry.IScopes scopes, @NotNull org.springframework.http.server.reactive.ServerHttpRequest request, @Nullable io.sentry.TransactionContext transactionContext, @NotNull String origin) 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_SCOPES_KEY
- See Also:
-
SENTRY_HUB_KEY
Deprecated.please useSENTRY_SCOPES_KEYinstead.- See Also:
-
-
Constructor Details
-
AbstractSentryWebFilter
public AbstractSentryWebFilter(@NotNull @NotNull io.sentry.IScopes scopes)
-
-
Method Details
-
maybeStartTransaction
@Nullable protected @Nullable io.sentry.ITransaction maybeStartTransaction(@NotNull @NotNull io.sentry.IScopes requestScopes, @NotNull @NotNull org.springframework.http.server.reactive.ServerHttpRequest request, @NotNull @NotNull String origin) -
doFinally
protected void doFinally(@NotNull @NotNull org.springframework.web.server.ServerWebExchange serverWebExchange, @NotNull @NotNull io.sentry.IScopes requestScopes, @Nullable @Nullable io.sentry.ITransaction transaction) -
doFirst
protected void doFirst(@NotNull @NotNull org.springframework.web.server.ServerWebExchange serverWebExchange, @NotNull @NotNull io.sentry.IScopes requestScopes) -
doOnError
protected void doOnError(@Nullable @Nullable io.sentry.ITransaction transaction, @NotNull @NotNull Throwable e) -
shouldTraceRequest
protected boolean shouldTraceRequest(@NotNull @NotNull io.sentry.IScopes scopes, @NotNull @NotNull org.springframework.http.server.reactive.ServerHttpRequest request) -
startTransaction
@NotNull protected @NotNull io.sentry.ITransaction startTransaction(@NotNull @NotNull io.sentry.IScopes scopes, @NotNull @NotNull org.springframework.http.server.reactive.ServerHttpRequest request, @Nullable @Nullable io.sentry.TransactionContext transactionContext, @NotNull @NotNull String origin)
-
SENTRY_SCOPES_KEYinstead.