Skip to content

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented Aug 13, 2025

Fixes #2269

The SDK should mark known third party tools and libraries to InAppExclude so that the stacktrace highlights the really relevant bits - the user's code.

Cysharp

Before:
Screenshot 2025-08-13 at 13 48 55

After:
Screenshot 2025-08-13 at 14 07 59

DG.Tweening

Before:
Screenshot 2025-08-13 at 14 46 35

After:
Screenshot 2025-08-13 at 14 50 47

Copy link
Contributor

github-actions bot commented Aug 13, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 348ebfb

@bruno-garcia
Copy link
Member

Missing changelog?

@bitsandfoxes
Copy link
Contributor Author

@sentry review

Comment on lines +324 to +325
AddInAppExclude("Cysharp");
AddInAppExclude("DG.Tweening");

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The hardcoded exclusions for third-party libraries may not be ideal for all use cases. Consider providing a configuration option to allow users to opt-out of these automatic exclusions if they need to debug issues within these libraries. This could be implemented as a boolean property like ExcludeCommonThirdPartyLibraries with a default value of true to maintain the current behavior while allowing flexibility for advanced users.

Suggested change
AddInAppExclude("Cysharp");
AddInAppExclude("DG.Tweening");
if (ExcludeCommonThirdPartyLibraries)
{
AddInAppExclude("Cysharp");
AddInAppExclude("DG.Tweening");
}

Did we get this right? 👍 / 👎 to inform future reviews.

@bitsandfoxes bitsandfoxes merged commit 97f2457 into main Aug 25, 2025
182 of 183 checks passed
@bitsandfoxes bitsandfoxes deleted the feat/cysharp-in-app-exclude branch August 25, 2025 10:44
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.

Add Cysharp as InApp=false
3 participants