Skip to content

Commit

Permalink
Merge pull request #752 from DataDog/marcosaia/RUM-7637/fix-ios-resou…
Browse files Browse the repository at this point in the history
…rce-sampling-rate

[RUM-7637] Fix missing iOS mapping of resourceTracingSamplingRate
  • Loading branch information
marco-saia-datadog authored Dec 18, 2024
2 parents 53dca44 + e003db4 commit a8a041a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 2 additions & 1 deletion packages/core/src/DdSdkReactNative.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,8 @@ export class DdSdkReactNative {
configuration.bundleLogsWithRum,
configuration.bundleLogsWithTraces,
configuration.trackNonFatalAnrs,
configuration.appHangThreshold
configuration.appHangThreshold,
configuration.resourceTracingSamplingRate
);
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ describe('DatadogProvider', () => {
"nativeLongTaskThresholdMs": 200,
"nativeViewTracking": false,
"proxyConfig": undefined,
"resourceTracingSamplingRate": 20,
"sampleRate": 100,
"serviceName": undefined,
"site": "US1",
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
) {}
}

Expand Down

0 comments on commit a8a041a

Please sign in to comment.