Skip to content

Conversation

@acmi
Copy link
Contributor

@acmi acmi commented Apr 7, 2025

📜 Description

Prioritizes the thread context classloader over the system classloader when the bootstrap classloader is null.
This ensures correct resource loading in environments like Spring Boot where the thread context classloader is used for resource loading.

💡 Motivation and Context

Fixes #4318

💚 How did you test it?

Manually

📝 Checklist

  • I added tests to verify the changes.
  • No new PII added or SDK only sends newly added PII if sendDefaultPII is enabled.
  • I updated the docs if needed.
  • I updated the wizard if needed.
  • Review from the native team if needed.
  • No breaking change or entry added to the changelog.
  • No breaking change for hybrid SDKs or communicated to hybrid SDKs.

🔮 Next steps

@lcian
Copy link
Member

lcian commented Apr 8, 2025

Thanks for the contribution @acmi !!

@lcian lcian merged commit 286b57f into getsentry:main Apr 9, 2025
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sentry resources not loaded when using javaagent with Spring Boot fat jar

2 participants