This major release of the Datadog React Native SDK focuses on streamlining modules, refining defaults, and improving reliability across product features.
Important
Refer to the Migration Guide for instructions on upgrading from 2.x and more information regarding breaking changes.
Main Breaking changes
DdSdkReactNativeConfigurationsplit into CoreConfiguration, RumConfiguration, LogsConfiguration, TraceConfiguration- Removed
setUser→ usesetUserInfo/clearUserInfo - Removed
defaultPrivacyLevelfor Session Replay: useimagePrivacyLevel,touchPrivacyLevelandtextAndInputPrivacyLevel - Android minSdkVersion bumped to 23
- Interaction tracking deprecated in core package
- Changed viewKey format on React Navigation package
Highlights
- Streamlined Attribute and UserInfo APIs
- Added Account Info API
- Added View attributes API
- Added Feature Operations API
- Added Memory warning tracking option for iOS
- Session-ID based consistent trace sampling
- Attribute encoding/validation improvements
- Native SDKs bumped to iOS 3.4.0 / Android 3.4.0
- Multiple stability and performance improvements
- JS Refresh Rate normalization to 0-60 fps
- Expanded navigation tracking options for React Navigation and React Native Navigation
What's Changed
- [RUM-9023] use session id to sample network traces by @xgouchet in #844
- [RUM-7747] update default tracing sampling rate by @xgouchet in #862
- Update feature/v3 branch with changes from develop by @sbarrio in #973
- [RUM-10518] Remove fatal errors from Logs by @sbarrio in #969
- [Internal] Update feature/v3 with latest changes from develop by @sbarrio in #990
- [RUM 11204] [Modularization] Use native SDK's core instance instead of DatadogSdkWrapperStorage's by @sbarrio in #978
- [RUM 11204] [Modularization] iOS: Always use SDK default core instance by @marco-saia-datadog in #980
- [RUM 11576] [Modularization] Improve module wrapper singleton creation by @sbarrio in #970
- [RUM 11204] [Modularization] Remove type dependencies between modules by @sbarrio in #977
- [RUM-11726] Bump native SDKs to 3.1.0 & remove
setUserAPI by @sbarrio in #989 - [RUM-11671] Expose clearUserInfo API by @sbarrio in #992
- [RUM 8891] [V3] Polish add/removeAttribute API by @sbarrio in #1006
- [RUM-11606] [V3] JS Refresh Rate normalization to 0-60 fps by @sbarrio in #1018
- [RUM-11723] [V3] Expose view attributes API by @sbarrio in #1010
- [RUM-11388] Fix FileBasedConfiguration related issues by @sbarrio in #964
- [V3] Update feature/v3 branch with changes from develop by @sbarrio in #1028
- [RUM-11676] [V3] Bump minSdkVersion to 23 by @sbarrio in #1027
- [RUM-12629] [V3] Add configuration option to track memory warnings by @cdn34dd in #1039
- [RUM-8706] [V3] Expose
setAccountInfoAPIs by @cdn34dd in #1035 - [RUM-12739] [V3] Integrate Feature Operations by @cdn34dd in #1050
- [RUM-12158][V3] SR: Remove defaultPrivacyLevel by @sbarrio in #1053
- [CHORE] [V3] Update v3 with latest from develop by @sbarrio in #1059
- [No Jira][v3] Adapt internal-testing-tools-package to v3 by @sbarrio in #1065
- [RUM-10500] [V3] Attributes encoding and validation by @marco-saia-datadog in #1008
- [RUM-11677] [V3] Add custom navigation tracking options by @sbarrio in #1061
- [RUM-12894] [V3] New Configuration object and initialization API to support Modularization by @sbarrio in #1058
- [RUM-13042] [RUM-13056] [FIX] [V3] Correct Baggage Header Handling by @marco-saia-datadog in #1075
- [RUM-12493] [V3] RUM Session ID based Consistent Trace Sampling by @marco-saia-datadog in #1071
- [CHORE] [V3] Update Datadog iOS SDK to v3.4.0 by @marco-saia-datadog in #1078
- [CHORE] [V3] Update Datadog Android SDK to v3.4.0 by @sbarrio in #1080
- [CHORE][V3] Adapt internal-testing-tools-package to v3 (Android) by @sbarrio in #1079
- [CHORE/FIX] [V3] Refactor modules to use Singleton Global Instance by @marco-saia-datadog in #1072
- [CHORE] [V3] Restore exception for androidx.performance import on RN<0.76 by @sbarrio in #1081
- [RUM-13565] [V3] Fix incorrect encoding of internal attributes by @cdn34dd in #1091
- [CHORE] Update v3 with latest changes from develop by @sbarrio in #1084
- [RUM-12776] [V3] Deprecate interaction tracking in core sdk package by @cdn34dd in #1088
- [RUM-13689] Update react-navigation view key format sent with view events by @cdn34dd in #1103
- [CHORE] Bring latest changes from v2.14.1 into V3 feature branch by @sbarrio in #1107
- [CHORE] [V3] Refactor Initialization APIs by @marco-saia-datadog in #1089
- [CHORE] [V3] Update repository docs for V3 by @sbarrio in #1099
Full Changelog: 2.14.1...3.0.0