Fix missing feature flags in crash and ANR error events#3172
Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 1 commit intoFeb 11, 2026
Conversation
Feature flags from the last RUM view event were not propagated to the ErrorEvent constructed by DatadogLateCrashReporter when handling NDK crashes and ANR fatal errors. This caused feature flag context to be lost in crash error events sent to Datadog. Add featureFlags field mapping (with ViewEvent.Context to ErrorEvent.Context conversion) in resolveErrorEventFromViewEvent(). Co-Authored-By: Claude Opus 4.6 <[email protected]>
This comment has been minimized.
This comment has been minimized.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #3172 +/- ##
===========================================
+ Coverage 71.19% 71.22% +0.03%
===========================================
Files 922 922
Lines 34111 34113 +2
Branches 5775 5776 +1
===========================================
+ Hits 24284 24294 +10
+ Misses 8195 8190 -5
+ Partials 1632 1629 -3
🚀 New features to boost your workflow:
|
0xnm
approved these changes
Feb 11, 2026
ambushwork
approved these changes
Feb 11, 2026
Member
Author
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
gh-worker-dd-mergequeue-cf854d
Bot
deleted the
valpertui/fix/missing-feature-flags-in-crash-anr-errors
branch
February 11, 2026 10:18
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 does this PR do?
Feature flags from the last RUM view event were not propagated to the
ErrorEventconstructed byDatadogLateCrashReporterwhen handling NDK crashes and ANR fatal errors. This caused feature flag context to be lost in crash error events sent to Datadog.The fix adds
featureFlagsfield mapping (withViewEvent.ContexttoErrorEvent.Contextconversion) inresolveErrorEventFromViewEvent().This is the Android counterpart of DataDog/dd-sdk-ios#2688 which fixed the same issue in the iOS SDK.
Review checklist (to be filled by reviewers)