diff --git a/packages/core/src/DdSdkReactNative.tsx b/packages/core/src/DdSdkReactNative.tsx index 224d0989a..5653515b7 100644 --- a/packages/core/src/DdSdkReactNative.tsx +++ b/packages/core/src/DdSdkReactNative.tsx @@ -308,7 +308,8 @@ export class DdSdkReactNative { configuration.bundleLogsWithRum, configuration.bundleLogsWithTraces, configuration.trackNonFatalAnrs, - configuration.appHangThreshold + configuration.appHangThreshold, + configuration.resourceTracingSamplingRate ); }; diff --git a/packages/core/src/sdk/DatadogProvider/__tests__/initialization.test.tsx b/packages/core/src/sdk/DatadogProvider/__tests__/initialization.test.tsx index 9f099f375..ac8e03dcd 100644 --- a/packages/core/src/sdk/DatadogProvider/__tests__/initialization.test.tsx +++ b/packages/core/src/sdk/DatadogProvider/__tests__/initialization.test.tsx @@ -91,6 +91,7 @@ describe('DatadogProvider', () => { "nativeLongTaskThresholdMs": 200, "nativeViewTracking": false, "proxyConfig": undefined, + "resourceTracingSamplingRate": 20, "sampleRate": 100, "serviceName": undefined, "site": "US1", diff --git a/packages/core/src/types.tsx b/packages/core/src/types.tsx index f5cb79425..3ab76e743 100644 --- a/packages/core/src/types.tsx +++ b/packages/core/src/types.tsx @@ -58,7 +58,8 @@ export class DdSdkConfiguration { readonly bundleLogsWithRum: boolean, readonly bundleLogsWithTraces: boolean, readonly trackNonFatalAnrs: boolean | undefined, - readonly appHangThreshold: number | undefined + readonly appHangThreshold: number | undefined, + readonly resourceTracingSamplingRate: number | undefined ) {} }