@datadog/mobile-react-native 3.5.2 → 3.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/android/build.gradle +8 -7
- package/android/src/main/kotlin/com/datadog/reactnative/DdRumImplementation.kt +1 -0
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkConfiguration.kt +0 -1
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkImplementation.kt +10 -3
- package/android/src/main/kotlin/com/datadog/reactnative/DdSdkReactNativePackage.kt +0 -1
- package/android/src/main/kotlin/com/datadog/reactnative/SdkVersion.kt +1 -1
- package/android/src/test/kotlin/com/datadog/reactnative/DdSdkTest.kt +124 -49
- package/ios/Sources/DdLogsImplementation.swift +2 -2
- package/ios/Sources/DdSdkConfiguration.swift +0 -1
- package/ios/Sources/SdkVersion.swift +1 -1
- package/lib/commonjs/flags/FlagsClient.js +268 -3
- package/lib/commonjs/flags/FlagsClient.js.map +1 -1
- package/lib/commonjs/flags/configuration/context.js +70 -0
- package/lib/commonjs/flags/configuration/context.js.map +1 -0
- package/lib/commonjs/flags/configuration/index.js +39 -0
- package/lib/commonjs/flags/configuration/index.js.map +1 -0
- package/lib/commonjs/flags/configuration/precomputed.js +172 -0
- package/lib/commonjs/flags/configuration/precomputed.js.map +1 -0
- package/lib/commonjs/flags/configuration/types.js +33 -0
- package/lib/commonjs/flags/configuration/types.js.map +1 -0
- package/lib/commonjs/flags/configuration/wire.js +19 -0
- package/lib/commonjs/flags/configuration/wire.js.map +1 -0
- package/lib/commonjs/flags/internal.js +7 -3
- package/lib/commonjs/flags/internal.js.map +1 -1
- package/lib/commonjs/index.js +13 -0
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/version.js +1 -1
- package/lib/module/flags/FlagsClient.js +268 -3
- package/lib/module/flags/FlagsClient.js.map +1 -1
- package/lib/module/flags/configuration/context.js +62 -0
- package/lib/module/flags/configuration/context.js.map +1 -0
- package/lib/module/flags/configuration/index.js +18 -0
- package/lib/module/flags/configuration/index.js.map +1 -0
- package/lib/module/flags/configuration/precomputed.js +165 -0
- package/lib/module/flags/configuration/precomputed.js.map +1 -0
- package/lib/module/flags/configuration/types.js +27 -0
- package/lib/module/flags/configuration/types.js.map +1 -0
- package/lib/module/flags/configuration/wire.js +13 -0
- package/lib/module/flags/configuration/wire.js.map +1 -0
- package/lib/module/flags/internal.js +7 -3
- package/lib/module/flags/internal.js.map +1 -1
- package/lib/module/index.js +2 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/version.js +1 -1
- package/lib/typescript/flags/FlagsClient.d.ts +96 -0
- package/lib/typescript/flags/FlagsClient.d.ts.map +1 -1
- package/lib/typescript/flags/configuration/context.d.ts +20 -0
- package/lib/typescript/flags/configuration/context.d.ts.map +1 -0
- package/lib/typescript/flags/configuration/index.d.ts +5 -0
- package/lib/typescript/flags/configuration/index.d.ts.map +1 -0
- package/lib/typescript/flags/configuration/precomputed.d.ts +25 -0
- package/lib/typescript/flags/configuration/precomputed.d.ts.map +1 -0
- package/lib/typescript/flags/configuration/types.d.ts +24 -0
- package/lib/typescript/flags/configuration/types.d.ts.map +1 -0
- package/lib/typescript/flags/configuration/wire.d.ts +2 -0
- package/lib/typescript/flags/configuration/wire.d.ts.map +1 -0
- package/lib/typescript/flags/internal.d.ts.map +1 -1
- package/lib/typescript/flags/types.d.ts +1 -1
- package/lib/typescript/flags/types.d.ts.map +1 -1
- package/lib/typescript/index.d.ts +4 -2
- package/lib/typescript/index.d.ts.map +1 -1
- package/lib/typescript/version.d.ts +1 -1
- package/package.json +3 -2
- package/src/flags/FlagsClient.ts +305 -3
- package/src/flags/__tests__/FlagsClient.test.ts +596 -0
- package/src/flags/__tests__/internal.test.ts +45 -0
- package/src/flags/configuration/__tests__/context.test.ts +120 -0
- package/src/flags/configuration/__tests__/precomputed.test.ts +301 -0
- package/src/flags/configuration/__tests__/wire.test.ts +127 -0
- package/src/flags/configuration/context.ts +76 -0
- package/src/flags/configuration/index.ts +27 -0
- package/src/flags/configuration/precomputed.ts +215 -0
- package/src/flags/configuration/types.ts +47 -0
- package/src/flags/configuration/wire.ts +15 -0
- package/src/flags/internal.ts +6 -3
- package/src/flags/types.ts +3 -1
- package/src/index.tsx +8 -0
- package/src/version.ts +1 -1
package/README.md
CHANGED
|
@@ -51,12 +51,12 @@ const datadogConfiguration = new DatadogProviderConfiguration(
|
|
|
51
51
|
trackErrors: true, // track errors
|
|
52
52
|
nativeCrashReportEnabled: true, // Optional: enable or disable native crash reports
|
|
53
53
|
sessionSampleRate: 80, // Optional: sample RUM sessions (here, 80% of session will be sent to Datadog. Default = 100%)
|
|
54
|
-
|
|
54
|
+
resourceTraceSampleRate: 80, // Optional: sample tracing integrations for network calls between your app and your backend (here, 80% of calls to your instrumented backend will be linked from the RUM view to the APM view. Default = 20%)
|
|
55
55
|
// You need to specify the hosts of your backends to enable tracing with these backends
|
|
56
56
|
firstPartyHosts: ['example.com'], // matches 'example.com' and subdomains like 'api.example.com'
|
|
57
57
|
},
|
|
58
58
|
logsConfiguration: {
|
|
59
|
-
logEventMapper:
|
|
59
|
+
logEventMapper: logEvent => {
|
|
60
60
|
logEvent.message = `[CUSTOM] ${logEvent.message}`;
|
|
61
61
|
return logEvent;
|
|
62
62
|
}
|
package/android/build.gradle
CHANGED
|
@@ -200,7 +200,7 @@ dependencies {
|
|
|
200
200
|
// This breaks builds if the React Native target is below 0.76.0. as it relies on Gradle 8.5.0.
|
|
201
201
|
// To avoid this, we enforce 1.0.0-beta01 on RN < 0.76.0
|
|
202
202
|
if (reactNativeMinorVersion < 76) {
|
|
203
|
-
implementation("com.datadoghq:dd-sdk-android-rum:3.
|
|
203
|
+
implementation("com.datadoghq:dd-sdk-android-rum:3.12.1") {
|
|
204
204
|
exclude group: "androidx.metrics", module: "metrics-performance"
|
|
205
205
|
}
|
|
206
206
|
implementation "androidx.metrics:metrics-performance:1.0.0-beta01"
|
|
@@ -220,13 +220,14 @@ dependencies {
|
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
} else {
|
|
223
|
-
implementation "com.datadoghq:dd-sdk-android-rum:3.
|
|
223
|
+
implementation "com.datadoghq:dd-sdk-android-rum:3.12.1"
|
|
224
224
|
}
|
|
225
|
-
implementation "com.datadoghq:dd-sdk-android-logs:3.
|
|
226
|
-
implementation "com.datadoghq:dd-sdk-android-trace:3.
|
|
227
|
-
implementation "com.datadoghq:dd-sdk-android-webview:3.
|
|
228
|
-
implementation "com.datadoghq:dd-sdk-android-ndk:3.
|
|
229
|
-
implementation "com.datadoghq:dd-sdk-android-flags:3.
|
|
225
|
+
implementation "com.datadoghq:dd-sdk-android-logs:3.12.1"
|
|
226
|
+
implementation "com.datadoghq:dd-sdk-android-trace:3.12.1"
|
|
227
|
+
implementation "com.datadoghq:dd-sdk-android-webview:3.12.1"
|
|
228
|
+
implementation "com.datadoghq:dd-sdk-android-ndk:3.12.1"
|
|
229
|
+
implementation "com.datadoghq:dd-sdk-android-flags:3.12.1"
|
|
230
|
+
implementation "com.datadoghq:dd-sdk-android-internal:3.12.1"
|
|
230
231
|
implementation "com.google.code.gson:gson:2.11.0"
|
|
231
232
|
testImplementation "org.junit.platform:junit-platform-launcher:1.6.2"
|
|
232
233
|
testImplementation "org.junit.jupiter:junit-jupiter-api:5.6.2"
|
|
@@ -218,6 +218,7 @@ class DdRumImplementation(private val datadog: DatadogWrapper = DatadogSDKWrappe
|
|
|
218
218
|
* @param stacktrace The error stacktrace.
|
|
219
219
|
* @param context The additional context to send.
|
|
220
220
|
* @param timestampMs The timestamp when the error occurred (in milliseconds). If not provided, current timestamp will be used.
|
|
221
|
+
* @param fingerprint A custom fingerprint to group this error with similar ones.
|
|
221
222
|
*/
|
|
222
223
|
@Suppress("LongParameterList")
|
|
223
224
|
fun addError(
|
|
@@ -37,6 +37,9 @@ class DdSdkImplementation(
|
|
|
37
37
|
internal val initialized = AtomicBoolean(false)
|
|
38
38
|
private var frameRateProvider: FrameRateProvider? = null
|
|
39
39
|
|
|
40
|
+
@Volatile
|
|
41
|
+
private var maxDisplayRefreshRate: Double? = null
|
|
42
|
+
|
|
40
43
|
// region DdSdk
|
|
41
44
|
|
|
42
45
|
/**
|
|
@@ -383,7 +386,7 @@ class DdSdkImplementation(
|
|
|
383
386
|
val frameTimeMs = frameTimeSeconds * 1000.0
|
|
384
387
|
val frameBudgetHz = fpsBudget ?: DEFAULT_REFRESH_HZ
|
|
385
388
|
val maxDeviceDisplayHz = deviceDisplayFps ?: getMaxDisplayRefreshRate(context)
|
|
386
|
-
?:
|
|
389
|
+
?: DEFAULT_REFRESH_HZ
|
|
387
390
|
|
|
388
391
|
val maxDeviceFrameTimeMs = 1000.0 / maxDeviceDisplayHz
|
|
389
392
|
val budgetFrameTimeMs = 1000.0 / frameBudgetHz
|
|
@@ -402,10 +405,14 @@ class DdSdkImplementation(
|
|
|
402
405
|
|
|
403
406
|
@Suppress("CyclomaticComplexMethod")
|
|
404
407
|
private fun getMaxDisplayRefreshRate(context: Context?): Double {
|
|
405
|
-
|
|
408
|
+
maxDisplayRefreshRate?.let { return it }
|
|
409
|
+
|
|
410
|
+
val dm = context?.getSystemService(Context.DISPLAY_SERVICE) as? DisplayManager ?: return DEFAULT_REFRESH_HZ
|
|
406
411
|
val display: Display = dm.getDisplay(Display.DEFAULT_DISPLAY) ?: return DEFAULT_REFRESH_HZ
|
|
412
|
+
val hz = display.supportedModes.maxOfOrNull { it.refreshRate.toDouble() } ?: DEFAULT_REFRESH_HZ
|
|
413
|
+
maxDisplayRefreshRate = hz
|
|
407
414
|
|
|
408
|
-
return
|
|
415
|
+
return hz
|
|
409
416
|
}
|
|
410
417
|
|
|
411
418
|
// endregion
|
|
@@ -7,7 +7,6 @@
|
|
|
7
7
|
package com.datadog.reactnative
|
|
8
8
|
|
|
9
9
|
import com.facebook.react.TurboReactPackage
|
|
10
|
-
import com.facebook.react.bridge.LifecycleEventListener
|
|
11
10
|
import com.facebook.react.bridge.NativeModule
|
|
12
11
|
import com.facebook.react.bridge.ReactApplicationContext
|
|
13
12
|
import com.facebook.react.module.model.ReactModuleInfo
|
|
@@ -76,6 +76,7 @@ import org.junit.jupiter.params.provider.MethodSource
|
|
|
76
76
|
import org.mockito.Answers
|
|
77
77
|
import org.mockito.Mock
|
|
78
78
|
import org.mockito.Mockito.mock
|
|
79
|
+
import org.mockito.Mockito.times
|
|
79
80
|
import org.mockito.Mockito.`when`
|
|
80
81
|
import org.mockito.junit.jupiter.MockitoExtension
|
|
81
82
|
import org.mockito.junit.jupiter.MockitoSettings
|
|
@@ -1657,11 +1658,20 @@ internal class DdSdkTest {
|
|
|
1657
1658
|
verbosity = verbosityName
|
|
1658
1659
|
)
|
|
1659
1660
|
|
|
1660
|
-
|
|
1661
|
-
|
|
1661
|
+
val rumMock = org.mockito.Mockito.mockStatic(Rum::class.java)
|
|
1662
|
+
val traceMock = org.mockito.Mockito.mockStatic(Trace::class.java)
|
|
1663
|
+
val logsMock = org.mockito.Mockito.mockStatic(Logs::class.java)
|
|
1664
|
+
try {
|
|
1665
|
+
// When
|
|
1666
|
+
testedBridgeSdk.initialize(bridgeConfiguration.toReadableJavaOnlyMap(), mockPromise)
|
|
1662
1667
|
|
|
1663
|
-
|
|
1664
|
-
|
|
1668
|
+
// Then
|
|
1669
|
+
verify(mockDatadog).setVerbosity(verbosity)
|
|
1670
|
+
} finally {
|
|
1671
|
+
rumMock.close()
|
|
1672
|
+
logsMock.close()
|
|
1673
|
+
traceMock.close()
|
|
1674
|
+
}
|
|
1665
1675
|
}
|
|
1666
1676
|
|
|
1667
1677
|
@Test
|
|
@@ -1674,11 +1684,20 @@ internal class DdSdkTest {
|
|
|
1674
1684
|
verbosity = verbosity
|
|
1675
1685
|
)
|
|
1676
1686
|
|
|
1677
|
-
|
|
1678
|
-
|
|
1687
|
+
val rumMock = org.mockito.Mockito.mockStatic(Rum::class.java)
|
|
1688
|
+
val traceMock = org.mockito.Mockito.mockStatic(Trace::class.java)
|
|
1689
|
+
val logsMock = org.mockito.Mockito.mockStatic(Logs::class.java)
|
|
1690
|
+
try {
|
|
1691
|
+
// When
|
|
1692
|
+
testedBridgeSdk.initialize(bridgeConfiguration.toReadableJavaOnlyMap(), mockPromise)
|
|
1679
1693
|
|
|
1680
|
-
|
|
1681
|
-
|
|
1694
|
+
// Then
|
|
1695
|
+
verify(mockDatadog, never()).setVerbosity(any())
|
|
1696
|
+
} finally {
|
|
1697
|
+
rumMock.close()
|
|
1698
|
+
logsMock.close()
|
|
1699
|
+
traceMock.close()
|
|
1700
|
+
}
|
|
1682
1701
|
}
|
|
1683
1702
|
|
|
1684
1703
|
@Test
|
|
@@ -2492,26 +2511,35 @@ internal class DdSdkTest {
|
|
|
2492
2511
|
)
|
|
2493
2512
|
val frameDurationNs = threshold + frameDurationOverThreshold
|
|
2494
2513
|
|
|
2495
|
-
|
|
2496
|
-
|
|
2514
|
+
val rumMock = org.mockito.Mockito.mockStatic(Rum::class.java)
|
|
2515
|
+
val traceMock = org.mockito.Mockito.mockStatic(Trace::class.java)
|
|
2516
|
+
val logsMock = org.mockito.Mockito.mockStatic(Logs::class.java)
|
|
2517
|
+
try {
|
|
2518
|
+
// When
|
|
2519
|
+
testedBridgeSdk.initialize(bridgeConfiguration.toReadableJavaOnlyMap(), mockPromise)
|
|
2497
2520
|
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2521
|
+
// Then
|
|
2522
|
+
argumentCaptor<Choreographer.FrameCallback> {
|
|
2523
|
+
verify(mockChoreographer).postFrameCallback(capture())
|
|
2501
2524
|
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2525
|
+
// When
|
|
2526
|
+
firstValue.doFrame(timestampNs)
|
|
2527
|
+
firstValue.doFrame(timestampNs + frameDurationNs)
|
|
2505
2528
|
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2529
|
+
// then
|
|
2530
|
+
verify(mockRumMonitor._getInternal()!!).updatePerformanceMetric(
|
|
2531
|
+
RumPerformanceMetric.JS_FRAME_TIME,
|
|
2532
|
+
frameDurationNs.toDouble()
|
|
2533
|
+
)
|
|
2534
|
+
verify(mockRumMonitor._getInternal()!!).addLongTask(
|
|
2535
|
+
frameDurationNs,
|
|
2536
|
+
"javascript"
|
|
2537
|
+
)
|
|
2538
|
+
}
|
|
2539
|
+
} finally {
|
|
2540
|
+
rumMock.close()
|
|
2541
|
+
logsMock.close()
|
|
2542
|
+
traceMock.close()
|
|
2515
2543
|
}
|
|
2516
2544
|
}
|
|
2517
2545
|
|
|
@@ -2532,26 +2560,35 @@ internal class DdSdkTest {
|
|
|
2532
2560
|
)
|
|
2533
2561
|
val frameDurationNs = threshold + frameDurationOverThreshold
|
|
2534
2562
|
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
argumentCaptor<Choreographer.FrameCallback> {
|
|
2540
|
-
verify(mockChoreographer).postFrameCallback(capture())
|
|
2541
|
-
|
|
2563
|
+
val rumMock = org.mockito.Mockito.mockStatic(Rum::class.java)
|
|
2564
|
+
val traceMock = org.mockito.Mockito.mockStatic(Trace::class.java)
|
|
2565
|
+
val logsMock = org.mockito.Mockito.mockStatic(Logs::class.java)
|
|
2566
|
+
try {
|
|
2542
2567
|
// When
|
|
2543
|
-
|
|
2544
|
-
firstValue.doFrame(timestampNs + frameDurationNs)
|
|
2568
|
+
testedBridgeSdk.initialize(bridgeConfiguration.toReadableJavaOnlyMap(), mockPromise)
|
|
2545
2569
|
|
|
2546
2570
|
// Then
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2571
|
+
argumentCaptor<Choreographer.FrameCallback> {
|
|
2572
|
+
verify(mockChoreographer).postFrameCallback(capture())
|
|
2573
|
+
|
|
2574
|
+
// When
|
|
2575
|
+
firstValue.doFrame(timestampNs)
|
|
2576
|
+
firstValue.doFrame(timestampNs + frameDurationNs)
|
|
2577
|
+
|
|
2578
|
+
// Then
|
|
2579
|
+
verify(mockRumMonitor._getInternal()!!).addLongTask(
|
|
2580
|
+
frameDurationNs,
|
|
2581
|
+
"javascript"
|
|
2582
|
+
)
|
|
2583
|
+
verify(mockRumMonitor._getInternal()!!, never()).updatePerformanceMetric(
|
|
2584
|
+
RumPerformanceMetric.JS_FRAME_TIME,
|
|
2585
|
+
frameDurationNs.toDouble()
|
|
2586
|
+
)
|
|
2587
|
+
}
|
|
2588
|
+
} finally {
|
|
2589
|
+
rumMock.close()
|
|
2590
|
+
logsMock.close()
|
|
2591
|
+
traceMock.close()
|
|
2555
2592
|
}
|
|
2556
2593
|
}
|
|
2557
2594
|
|
|
@@ -3424,14 +3461,23 @@ internal class DdSdkTest {
|
|
|
3424
3461
|
DdSdkSynthetics.testId = "unit-test-test-id"
|
|
3425
3462
|
DdSdkSynthetics.resultId = "unit-test-result-id"
|
|
3426
3463
|
|
|
3427
|
-
|
|
3428
|
-
|
|
3464
|
+
val rumMock = org.mockito.Mockito.mockStatic(Rum::class.java)
|
|
3465
|
+
val traceMock = org.mockito.Mockito.mockStatic(Trace::class.java)
|
|
3466
|
+
val logsMock = org.mockito.Mockito.mockStatic(Logs::class.java)
|
|
3467
|
+
try {
|
|
3468
|
+
// When
|
|
3469
|
+
testedBridgeSdk.initialize(fakeConfiguration.toReadableJavaOnlyMap(), mockPromise)
|
|
3429
3470
|
|
|
3430
|
-
|
|
3431
|
-
|
|
3432
|
-
|
|
3433
|
-
|
|
3434
|
-
|
|
3471
|
+
// Then
|
|
3472
|
+
verify(mockRumInternalProxy).setSyntheticsAttribute(
|
|
3473
|
+
"unit-test-test-id",
|
|
3474
|
+
"unit-test-result-id"
|
|
3475
|
+
)
|
|
3476
|
+
} finally {
|
|
3477
|
+
rumMock.close()
|
|
3478
|
+
logsMock.close()
|
|
3479
|
+
traceMock.close()
|
|
3480
|
+
}
|
|
3435
3481
|
}
|
|
3436
3482
|
|
|
3437
3483
|
@Test
|
|
@@ -3595,6 +3641,35 @@ internal class DdSdkTest {
|
|
|
3595
3641
|
assertThat(result).isEqualTo(0.016, Offset.offset(0.001))
|
|
3596
3642
|
}
|
|
3597
3643
|
|
|
3644
|
+
@Test
|
|
3645
|
+
fun `M read supportedModes only once W normalizeFrameTime called multiple times`() {
|
|
3646
|
+
// Given
|
|
3647
|
+
val mockContext = mock(Context::class.java)
|
|
3648
|
+
val mockDisplayManager = mock(DisplayManager::class.java)
|
|
3649
|
+
val mockDisplay = mock(Display::class.java)
|
|
3650
|
+
|
|
3651
|
+
`when`(mockContext.getSystemService(Context.DISPLAY_SERVICE)).thenReturn(mockDisplayManager)
|
|
3652
|
+
`when`(mockDisplayManager.getDisplay(Display.DEFAULT_DISPLAY)).thenReturn(mockDisplay)
|
|
3653
|
+
`when`(mockDisplay.supportedModes).thenReturn(arrayOf())
|
|
3654
|
+
|
|
3655
|
+
// When
|
|
3656
|
+
testedBridgeSdk.normalizeFrameTime(
|
|
3657
|
+
frameTimeSeconds = 0.016,
|
|
3658
|
+
context = mockContext,
|
|
3659
|
+
fpsBudget = null,
|
|
3660
|
+
deviceDisplayFps = null
|
|
3661
|
+
)
|
|
3662
|
+
testedBridgeSdk.normalizeFrameTime(
|
|
3663
|
+
frameTimeSeconds = 0.016,
|
|
3664
|
+
context = mockContext,
|
|
3665
|
+
fpsBudget = null,
|
|
3666
|
+
deviceDisplayFps = null
|
|
3667
|
+
)
|
|
3668
|
+
|
|
3669
|
+
// Then
|
|
3670
|
+
verify(mockDisplay, times(1)).supportedModes
|
|
3671
|
+
}
|
|
3672
|
+
|
|
3598
3673
|
// endregion
|
|
3599
3674
|
|
|
3600
3675
|
// region Internal
|
|
@@ -93,9 +93,9 @@ public class DdLogsImplementation: NSObject {
|
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
internal extension DatadogLogs.Logger.Configuration {
|
|
96
|
-
/// Creates a Logger configuration from
|
|
96
|
+
/// Creates a Logger configuration from bridged configuration dictionary.
|
|
97
97
|
///
|
|
98
|
-
/// - Parameter
|
|
98
|
+
/// - Parameter sdkConfiguration: The configuration from the bridge.
|
|
99
99
|
init(_ sdkConfiguration: DdSdkConfiguration) {
|
|
100
100
|
self.init(
|
|
101
101
|
networkInfoEnabled: true,
|
|
@@ -190,7 +190,6 @@ public class LogsConfiguration: NSObject {
|
|
|
190
190
|
/// A configuration object for Datadog Tracing (APM) features.
|
|
191
191
|
///
|
|
192
192
|
/// - Parameters:
|
|
193
|
-
/// - resourceTracingSamplingRate: Percentage (0–100) of network resource traces to sample.
|
|
194
193
|
/// - customEndpoint: A custom Trace intake endpoint to override the default Datadog intake.
|
|
195
194
|
public class TraceConfiguration: NSObject {
|
|
196
195
|
public var customEndpoint: String? = nil
|