From e003db4fe999113dc9c7cd15c3e8dfd7b2db5ff8 Mon Sep 17 00:00:00 2001 From: Marco Saia Date: Wed, 18 Dec 2024 15:55:30 +0100 Subject: [PATCH] Fix missing iOS mapping of resourceTracingSamplingRate --- packages/core/src/DdSdkReactNative.tsx | 3 ++- .../src/sdk/DatadogProvider/__tests__/initialization.test.tsx | 1 + packages/core/src/types.tsx | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) 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 ) {} }