Skip to content

Conversation

@maxep
Copy link
Member

@maxep maxep commented Oct 31, 2025

What and why?

This PR adds DatadogMinifyFilter for the KSCrash integration, which reduces crash report size by removing unnecessary data. This is equivalent to the existing CrashReportInfoMinifier used in the PLCrashReporter integration. The filter removes unreferenced binary images and limits stack traces to 200 frames to optimize payload size for transmission.

How?

The filter operates on type-safe CrashFieldDictionary crash reports and performs two optimizations. First, it collects all object_addr values from thread backtraces (including main crash and recrash reports) and filters the binary_images array to keep only those whose image_addr appears in the collected set. Second, when a thread's backtrace exceeds 200 frames, it removes frames from the middle of the stack trace to preserve the most important top and bottom frames, and marks the backtrace as truncated.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)
  • Make sure each commit and the PR mention the Issue number or JIRA reference
  • Add CHANGELOG entry for user facing changes
  • Add Objective-C interface for public APIs (see our guidelines (internal) and run make api-surface)

@maxep maxep force-pushed the maxep/RUM-12420/kscrash-report-minifier branch 2 times, most recently from 68e9673 to 57b5fcb Compare October 31, 2025 16:38
@maxep maxep force-pushed the maxep/RUM-12420/kscrash-typesafe branch from f1ecbe0 to 0644873 Compare November 3, 2025 14:03
@maxep maxep force-pushed the maxep/RUM-12420/kscrash-report-minifier branch from 57b5fcb to e005def Compare November 3, 2025 15:06
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.

2 participants