Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,12 @@ const datadogConfiguration = new DatadogProviderConfiguration(
trackErrors: true, // track errors
nativeCrashReportEnabled: true, // Optional: enable or disable native crash reports
sessionSampleRate: 80, // Optional: sample RUM sessions (here, 80% of session will be sent to Datadog. Default = 100%)
resourceTracingSamplingRate: 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%)
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%)
// You need to specify the hosts of your backends to enable tracing with these backends
firstPartyHosts: ['example.com'], // matches 'example.com' and subdomains like 'api.example.com'
},
logsConfiguration: {
logEventMapper: (logEvent) => {
logEventMapper: logEvent => {
logEvent.message = `[CUSTOM] ${logEvent.message}`;
return logEvent;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,7 @@ class DdRumImplementation(private val datadog: DatadogWrapper = DatadogSDKWrappe
* @param stacktrace The error stacktrace.
* @param context The additional context to send.
* @param timestampMs The timestamp when the error occurred (in milliseconds). If not provided, current timestamp will be used.
* @param fingerprint A custom fingerprint to group this error with similar ones.
*/
@Suppress("LongParameterList")
fun addError(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

package com.datadog.reactnative

import com.datadog.android.core.configuration.BatchProcessingLevel
import com.datadog.android.trace.TracingHeaderType
import java.net.Proxy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
package com.datadog.reactnative

import com.facebook.react.TurboReactPackage
import com.facebook.react.bridge.LifecycleEventListener
import com.facebook.react.bridge.NativeModule
import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.module.model.ReactModuleInfo
Expand Down
4 changes: 2 additions & 2 deletions packages/core/ios/Sources/DdLogsImplementation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@ public class DdLogsImplementation: NSObject {
}

internal extension DatadogLogs.Logger.Configuration {
/// Creates a Logger configuration from briged configuration dictionary.
/// Creates a Logger configuration from bridged configuration dictionary.
///
/// - Parameter dictionnary: The configuration from the bridge.
/// - Parameter sdkConfiguration: The configuration from the bridge.
init(_ sdkConfiguration: DdSdkConfiguration) {
self.init(
networkInfoEnabled: true,
Expand Down
1 change: 0 additions & 1 deletion packages/core/ios/Sources/DdSdkConfiguration.swift
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,6 @@ public class LogsConfiguration: NSObject {
/// A configuration object for Datadog Tracing (APM) features.
///
/// - Parameters:
/// - resourceTracingSamplingRate: Percentage (0–100) of network resource traces to sample.
/// - customEndpoint: A custom Trace intake endpoint to override the default Datadog intake.
public class TraceConfiguration: NSObject {
public var customEndpoint: String? = nil
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ import com.facebook.react.bridge.ReactApplicationContext
import com.facebook.react.module.model.ReactModuleInfo
import com.facebook.react.module.model.ReactModuleInfoProvider
import com.facebook.react.uimanager.ViewManager
import com.reactnativecommunity.webview.RNCWebViewModule
import com.reactnativecommunity.webview.RNCWebViewModuleImpl

class DdSdkReactNativeWebViewPackage : TurboReactPackage() {
override fun createViewManagers(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
*/

#import <Foundation/Foundation.h>
#import <DatadogSDKReactNative/DatadogSDKReactNative-umbrella.h>
#import "RCTDatadogWebViewManager.h"
#import "RCTDatadogWebView.h"

Expand Down