How can i log my post API Payload(body) using spring

hi sir,
i am trying to use sentry in my application. I want to log my Exception stack trace with a body(payload). but when I try to use sentry with DSN from “sentry.properties” it only logs a stack trace but not a body while uncachedException. so my question is how can i log my body or parameters too in sentry logs.