-
-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bump Spring Boot to 3.4 #3941
Comments
Please see this issue as this might very well pertain to Sentry: spring-projects/spring-boot#43332 Using Sentry 7.18.1 and 8.0.0.rc1 produced different errors in our staging environment.
Cannot confirm 💯 without disabling Sentry in our Spring Boot app completely but have a Cheers, |
Thanks for reaching out @bjornharvold , what makes you think it's Sentry that's causing the issues? Just using different versions and having different outcomes? Are you seeing any exceptions? Do you have a repro we can use to look into this issue? Can you please share more info on how you're using Sentry (which SDK, integrations, options, etc.). |
Hi @adinauer What makes this look like an instrumentation issue, is that there is 0 errors. The apps just start hanging completely and being completely unresponsive even though we can see Spring Data MongoDb pinging MongoDB Atlas every few seconds. Now it could be Spring Authorization Server but it wouldn't be giving us different errors based on the Sentry version we use. Never seen anything quite like this actually. Of course cannot be sure it's Sentry as we are unable to make a thread dump once the Cloud Run instance reaches this state. Last indication that it is most likely Sentry is that our Spring Boot app (3.4.0) works locally and we have set Hope this helps, |
@bjornharvold did this start happening when you bumped Spring Boot to Can you please share more details on what Sentry integrations you're using and what config options you are setting? How many servers are in play here and which one is causing troubles? A reproducible sample would be the best way for us to help you. |
Hi @adinauer, This started happening when upgrading Spring Boot to 3.4.0 and pushing to staging. Sentry was still on 7.18.0 at this point. Here are the settings we use in staging and we haven't changed these settings for a long time (This is the configuration for a Spring Web MVC app FYI - maybe the reactive and backpressue properties are not valid here): I am not asking for support on this ticket. I will create my own if I am certain that it's Sentry. Pointing out that this might be something to look at while testing support for Spring Boot 3.4.0. In your docs, there is no support for this version yet AFAIK. |
@bjornharvold can you please try with |
@bjornharvold have you had a chance to test the config change above? The problem might be related to us caching the request body. The suggested config disables attaching the request body to Sentry events as well as temporary caching of the request body. |
Hi @adinauer Will try this next week when staging frees up. Cheers |
Hi @adinauer, We tested 2 things this time around:
Question: Cheers |
Thanks @bjornharvold, you can either not set the DSN ( |
Hi @bjornharvold, The first tests indicate that the request caching we do seems to cause this issue with Spring Booot 3.4 and Sentry 8.0.0-rc.1. This is only active when You could give disabling this a try. Testing with 7.18.1 is going on today, will post the results here once done. We also have a fix in mind, which I will test after that. |
Hi again @bjornharvold, Maybe when you get around to testing again, try with The login issue should be solved as soon as #3641 drops. The problem, it seems, had to do with how we did request caching and this caused the csrf filter to fail on the spring auth server side. |
Hi @lbloder, Seems like setting What does that actually mean? 🫶🏼 |
Hi @bjornharvold,
That's great news! Thanks for giving this a try and letting us know!
This flags enables/disables sending what we consider to be PII (= Personal Identifiable Information). Which, for example, includes Request Payloads and known auth headers and so on. By default this flag is set to off, which is the safest. If you enable this, you need to consider the implications of which data is sent to sentry and filter it manually in Hope that helps, if you have any questions, please let us know |
Description
Bump Spring Boot to 3.4
The text was updated successfully, but these errors were encountered: