Problem Statement
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
Problem Statement
Problem:
In SpringBoot Webflux, exceptions are intercepted by the
SentryWebExceptionHandler. Here, a SentryEvent is generated prior to invokinghub.captureEvent(event, hint);. BothServerHttpRequestandServerHttpResponseare 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
ServerWebExchangeas a property ininternalStoragemap of the Hint object