Conversation
Audience SDK — Build Size
SDK Size = build minus empty app. Change = vs baseline. Fails if any platform exceeds its absolute size limit. |
nattb8
force-pushed
the
feat/sdk-1056-exception-capture
branch
4 times, most recently
from
September 29, 2026 02:22
6f63d91 to
a77c189
Compare
Adds ErrorTrackingConfig.CaptureExceptions, off by default. When set, the SDK listens for uncaught C# exceptions via Unity's logMessageReceivedThreaded and sends them as an exception_captured event through the existing Track pipeline. Rate limited per exception type via a token bucket (burst 20, refills 1 every 10s), not one shared counter, so a repeating exception can't flood the queue or crowd out a different, unrelated one. Matches how PostHog's client-side exception rate limiter is designed. Adds a Capture Exceptions toggle and a Throw Test Exception button to the sample app's Setup tab, plus PlayMode E2E coverage confirming the event queues when enabled and doesn't when disabled. No native crash capture (segfaults, ANRs). Managed exceptions only. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
nattb8
force-pushed
the
feat/sdk-1056-exception-capture
branch
from
September 29, 2026 02:30
a77c189 to
efd5005
Compare
nattb8
marked this pull request as ready for review
September 29, 2026 08:16
JCSanPedro
approved these changes
Sep 29, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
ErrorTrackingConfig.CaptureExceptions, off by defaultApplication.logMessageReceivedThreaded, filtered toLogType.ExceptiononlyTrackpipeline as a newexception_capturedevent, with exception type, message, and stack trace as propertiesWhy
Right now an uncaught exception only shows up in a studio's own local Unity console, nothing reaches Immutable. This is the cheap first step before real native crash reporting (segfaults, ANRs), which is separate, bigger work.
Test plan
Debug.LogException, and confirmed the actual outgoing payload contained"eventName":"exception_captured"with the right propertiesImmutableAudience.CaptureException: disabled by default, consent gating, burst-then-stop, different types not sharing a bucket, refill over time, and the cap resetting on a freshInitafterShutdownTicket: SDK-1056
🤖 Generated with Claude Code