Skip to content

Commit

Permalink
Fix missing iOS mapping of resourceTracingSamplingRate
Browse files Browse the repository at this point in the history
  • Loading branch information
marco-saia-datadog committed Dec 18, 2024
1 parent 53dca44 commit e003db4
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 e003db4

Please sign in to comment.