Skip to content
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

feat: Filter Unity telemetry BadGatewayException on iOS native layer #1345

Merged
merged 4 commits into from
May 30, 2023

Conversation

bitsandfoxes
Copy link
Contributor

@bitsandfoxes bitsandfoxes commented May 30, 2023

We had filtering of BadGatewayExceptions on the C# layer. If enabled, these need to be propagated down to the native layer as well.

@bitsandfoxes bitsandfoxes requested a review from vaind May 30, 2023 15:32
@bitsandfoxes bitsandfoxes changed the title fix: Propagate BadGatewayException filtering to native layer feat: Filter Unity telemetry BadGatewayException on iOS native layer May 30, 2023
@github-actions
Copy link
Contributor

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

Generated by 🚫 dangerJS against 3711f25

@@ -139,6 +139,11 @@ public new CompressionLevelWithAuto RequestBodyCompressionLevel
/// </summary>
public TimeSpan AnrTimeout { get; set; } = TimeSpan.FromSeconds(5);

/// <summary>
/// Whether the SDK should automatically filter `Bad Gateway Exceptions` caused by Unity.
Copy link
Member

Choose a reason for hiding this comment

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

Above it indicates that it does this only work for iOS. Should we indicate this in the docs here?

Suggested change
/// Whether the SDK should automatically filter `Bad Gateway Exceptions` caused by Unity.
/// Whether the SDK should automatically filter `BadGatewayException` caused by Unity on iOS.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

There are a whole bunch of places these exceptions are coming from. We already filter them on the C# layer but now, with the same flag because it's the same noise, we also filter the ones coming from native iOS.

@bitsandfoxes bitsandfoxes merged commit 4836c4f into main May 30, 2023
@bitsandfoxes bitsandfoxes deleted the fix/filter-unity-exceptions branch May 30, 2023 18: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.

3 participants