Package io.sentry.spring7.webflux
Class AbstractSentryWebFilter
java.lang.Object
io.sentry.spring7.webflux.AbstractSentryWebFilter
- All Implemented Interfaces:
WebFilter
- Direct Known Subclasses:
SentryWebFilter,SentryWebFilterWithThreadLocalAccessor
Manages
IScope in Webflux request processing.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoFinally(@NotNull ServerWebExchange serverWebExchange, @NotNull io.sentry.IScopes requestScopes, @Nullable io.sentry.ITransaction transaction) protected voiddoFirst(@NotNull ServerWebExchange serverWebExchange, @NotNull io.sentry.IScopes requestScopes) protected voidprotected @Nullable io.sentry.ITransactionmaybeStartTransaction(@NotNull io.sentry.IScopes requestScopes, @NotNull ServerHttpRequest request, @NotNull String origin) protected booleanshouldTraceRequest(@NotNull io.sentry.IScopes scopes, @NotNull ServerHttpRequest request) protected @NotNull io.sentry.ITransactionstartTransaction(@NotNull io.sentry.IScopes scopes, @NotNull ServerHttpRequest request, @Nullable io.sentry.TransactionContext transactionContext, @NotNull String origin)
-
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 ServerHttpRequest request, @NotNull @NotNull String origin) -
doFinally
protected void doFinally(@NotNull @NotNull ServerWebExchange serverWebExchange, @NotNull @NotNull io.sentry.IScopes requestScopes, @Nullable @Nullable io.sentry.ITransaction transaction) -
doFirst
protected void doFirst(@NotNull @NotNull 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 ServerHttpRequest request) -
startTransaction
@NotNull protected @NotNull io.sentry.ITransaction startTransaction(@NotNull @NotNull io.sentry.IScopes scopes, @NotNull @NotNull ServerHttpRequest request, @Nullable @Nullable io.sentry.TransactionContext transactionContext, @NotNull @NotNull String origin)
-
SENTRY_SCOPES_KEYinstead.