You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
In SpringBoot Webflux, exceptions are intercepted by the SentryWebExceptionHandler. Here, a SentryEvent is generated prior to invoking hub.captureEvent(event, hint);. Both ServerHttpRequest and ServerHttpResponse are embedded in the Hint object. Given that the same Hint and Sentry Event objects are forwarded to SentryOptions.BeforeSendCallback, information derived solely from the request or response can be utilized to establish logic within BeforeSendCallback.
This creates a limitation where if a user intends to utilize exchange attributes within BeforeSendCallback to formulate logic, they are restricted from doing so.
Screenshots:
Solution Brainstorm
An easy fix for this problem involves setting ServerWebExchange as a property in internalStorage map of the Hint object
The text was updated successfully, but these errors were encountered:
Hello @usrivastava92 thanks for the feedback. I presume simply adding ServerWebExchange to Hint, e.g. as WEBFLUX_EXCEPTION_HANDLER_EXCHANGE would solve the problem, correct?
Problem Statement
Problem:
In SpringBoot Webflux, exceptions are intercepted by the
SentryWebExceptionHandler
. Here, a SentryEvent is generated prior to invokinghub.captureEvent(event, hint);
. BothServerHttpRequest
andServerHttpResponse
are embedded in the Hint object. Given that the same Hint and Sentry Event objects are forwarded toSentryOptions.BeforeSendCallback
, information derived solely from the request or response can be utilized to establish logic within BeforeSendCallback.This creates a limitation where if a user intends to utilize exchange attributes within BeforeSendCallback to formulate logic, they are restricted from doing so.
Screenshots:
Solution Brainstorm
An easy fix for this problem involves setting
ServerWebExchange
as a property ininternalStorage
map of the Hint objectThe text was updated successfully, but these errors were encountered: