Skip to content

[RUM-16384] feat: add nativeIosResourceTracking RUM option - #1459

Draft
marco-saia-datadog wants to merge 1 commit into
developfrom
marco.saia/RUM-16384/ios-native-resource-tracking-param
Draft

marco-saia-datadog wants to merge 1 commit into
developfrom
marco.saia/RUM-16384/ios-native-resource-tracking-param

Conversation

@marco-saia-datadog

Copy link
Copy Markdown
Member

What does this PR do?

Introduces an explicit RUM initialization option to enable/disable iOS resource tracking:

rumConfiguration: {
    nativeIosResourceTracking?: boolean
}

Motivation

On iOS, native URLSession resource tracking has been on by default since v3.2.0. It's enabled whenever firstPartyHosts is defined, and the JS default is an empty array [].

trackResources: false doesn't turn it off, so today the only workaround is to set firstPartyHosts to undefined, which also disables first-party tracing.

Changes

  • JS: the option is added to RumConfiguration, DatadogProviderConfiguration, the async/partial init configs, FileBasedConfiguration and datadog-configuration.schema.json. No layer sets a default, so undefined reaches native unchanged.
  • iOS: both parsers (JS bridge and native-init JSON) read the option. buildRumConfiguration now uses nativeIosResourceTracking ?? (firstPartyHosts != nil).
  • Tests: Jest covers how the option flows through every config path. The new XCTests cover the 9 combinations of option value × firstPartyHosts (nil, [], non-empty), plus the parsers.

Compatibility

Existing apps see no behavior change unless they explicitly set the new option.

Testing

  • Jest: 838 passed, 1 skipped
  • iOS XCTests (DatadogSDKReactNative test scheme)

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)
  • If this PR is auto-generated, please make sure also to manually update the code related to the change

@datadog-prod-us1-5

datadog-prod-us1-5 Bot commented Oct 1, 2026 •

Copy link
Copy Markdown

Tests

✅ All CI checks and tests passed.

🎉 All green!

🧪 All tests passed
❄️ No new flaky tests detected

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: d7e838e | Docs | View more details | Give us feedback!

@marco-saia-datadog
marco-saia-datadog force-pushed the marco.saia/RUM-16384/ios-native-resource-tracking-param branch from e4659ca to d7e838e Compare October 1, 2026 13:21

This branch has not been deployed

No deployments
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.

1 participant