Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@

## Unreleased

### Features

- The SDK now automatically marks stack frames from `Cysharp` and `DG.Tweening` as non in-app.
This highly improves the resulting stack trace quality in the issues details. ([#2285](https://github.com/getsentry/sentry-unity/pull/2285))

### Fixes

- For targeting iOS, the Unity SDK now brings an iOS-only `.xcframework`, reducing package size. ([#2264](https://github.com/getsentry/sentry-unity/pull/2264))
Expand Down
3 changes: 3 additions & 0 deletions src/Sentry.Unity/SentryUnityOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,9 @@ internal SentryUnityOptions(

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

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.


var processor = new UnityEventProcessor(this);
AddEventProcessor(processor);
AddTransactionProcessor(processor);
Expand Down