[RUM-16384] feat: add nativeIosResourceTrackingDisallowList RUM option - #1460
Open
marco-saia-datadog wants to merge 1 commit into
Conversation
marco-saia-datadog
changed the base branch from
develop
to
marco.saia/RUM-16384/ios-native-resource-tracking-param
October 1, 2026 11:41
|
✅ All CI checks and tests passed. 🎉 All green!🧪 All tests passed 🔗 Commit SHA: eec90c6 | Docs | View more details | Give us feedback! |
marco-saia-datadog
force-pushed
the
marco.saia/RUM-16384/ios-native-resource-tracking-filters
branch
from
October 1, 2026 13:22
fc0c4f7 to
eec90c6
Compare
marco-saia-datadog
marked this pull request as ready for review
October 2, 2026 15:32
marco-saia-datadog
added this pull request to stack #1468
October 2, 2026 15:32
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 does this PR do?
Introduces a RUM initialization option to exclude URLs from native iOS resource tracking:
The list is passed to the iOS SDK's
URLSessionTracking(disallowList:). Patterns are matched against the full URL: plain strings match exactly, and * matches any characters. Matching requests are not tracked as RUM resources, and they get no trace headers and no APM span.Builds on #1459.
Motivation
Native iOS resource tracking can now be turned on or off (#1459), but there is still no way to filter what it tracks. The native resource event mapper is internal to the RN SDK, so customers cannot drop unwanted native resources, such as third-party SDK traffic. A mapper also couldn't stop trace header injection, which the disallow list does.
Changes
RumConfiguration,DatadogProviderConfiguration, the async/partial init configs,FileBasedConfigurationanddatadog-configuration.schema.json. Patterns are not validated in JS; the iOS SDK drops invalid ones (e.g."*") with a warning.[].buildRumConfigurationpasses it toURLSessionTrackingonly when native tracking is enabled. If the list is set while tracking is disabled, it is ignored and aDD.loggerwarning is printed (subject to verbosity).Compatibility
Existing apps see no behavior change unless they explicitly set the new option.
Testing
DatadogSDKReactNativetest scheme)Review checklist (to be filled by reviewers)