diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 2434cc737..a98be3d72 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -189,7 +189,7 @@ At a minimum, please provide: - Android API level; - Datadog SDK version; - Versions of any other relevant dependencies (OkHttp, …); - - Your proguard configuration; + - Your ProGuard configuration; - The list of Gradle plugins applied to your project. If at all possible, also provide: diff --git a/packages/core/src/DdSdkReactNativeConfiguration.tsx b/packages/core/src/DdSdkReactNativeConfiguration.tsx index 02f297ae5..7361c478c 100644 --- a/packages/core/src/DdSdkReactNativeConfiguration.tsx +++ b/packages/core/src/DdSdkReactNativeConfiguration.tsx @@ -115,7 +115,7 @@ const DEFAULTS = { */ export class DdSdkReactNativeConfiguration { /** - * Enables crash reporting for native plaforms (iOS, Android). Default `false`. + * Enables crash reporting for native platforms (iOS, Android). Default `false`. */ public nativeCrashReportEnabled: boolean = DEFAULTS.nativeCrashReportEnabled; diff --git a/packages/core/src/__tests__/mock.test.ts b/packages/core/src/__tests__/mock.test.ts index 9627ad7ce..d6661961e 100644 --- a/packages/core/src/__tests__/mock.test.ts +++ b/packages/core/src/__tests__/mock.test.ts @@ -27,7 +27,7 @@ const privateProperties = { 'nativeLogs', 'logEventMapper', 'printLogDroppedSdkNotInitialized', - 'printlogDroppedByMapper', + 'printLogDroppedByMapper', 'printLogTracked', 'log', 'logWithError' diff --git a/packages/core/src/logs/DdLogs.ts b/packages/core/src/logs/DdLogs.ts index c3c48ce4b..8f510d39c 100644 --- a/packages/core/src/logs/DdLogs.ts +++ b/packages/core/src/logs/DdLogs.ts @@ -113,7 +113,7 @@ class DdLogsWrapper implements DdLogsType { } }; - private printlogDroppedByMapper = ( + private printLogDroppedByMapper = ( message: string, status: 'debug' | 'info' | 'warn' | 'error' ) => { @@ -144,7 +144,7 @@ class DdLogsWrapper implements DdLogsType { status }); if (!event) { - this.printlogDroppedByMapper(message, status); + this.printLogDroppedByMapper(message, status); return generateEmptyPromise(); } @@ -180,7 +180,7 @@ class DdLogsWrapper implements DdLogsType { status }); if (!event) { - this.printlogDroppedByMapper(message, status); + this.printLogDroppedByMapper(message, status); return generateEmptyPromise(); } diff --git a/packages/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx b/packages/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx index 857fc2bec..570fa9c74 100644 --- a/packages/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx +++ b/packages/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx @@ -82,12 +82,12 @@ export class DdRumUserInteractionTracking { try { const jsxRuntime = getJsxRuntime(); - const originaljsx = jsxRuntime.jsx; - this.originalJsx = originaljsx; + const originalJsx = jsxRuntime.jsx; + this.originalJsx = originalJsx; jsxRuntime.jsx = ( ...args: Parameters ): ReturnType => { - return this.patchCreateElementFunction(originaljsx, args); + return this.patchCreateElementFunction(originalJsx, args); }; } catch (e) { DdSdk.telemetryDebug(getErrorMessage(e)); diff --git a/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts b/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts index e68229af0..2ee671920 100644 --- a/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts +++ b/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.ts @@ -46,7 +46,7 @@ interface XHRProxyProviders { } /** - * Proxies XMLHTTPRequest to track resources. + * Proxies XMLHttpRequest to track resources. */ export class XHRProxy extends RequestProxy { private providers: XHRProxyProviders; diff --git a/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.ts b/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.ts index 6d798c110..495d71ffa 100644 --- a/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.ts +++ b/packages/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/responseSize.ts @@ -9,7 +9,7 @@ import { SdkVerbosity } from '../../../../../SdkVerbosity'; const MISSING_RESOURCE_SIZE = -1; export const RESOURCE_SIZE_ERROR_MESSAGE = - "Couldn't get resource size, because an error occured: "; + "Couldn't get resource size, because an error occurred: "; function byteLength(str: string): number { // This is a weird trick, but it works. diff --git a/packages/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.ts b/packages/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.ts index cba7878a1..e6d74cd86 100644 --- a/packages/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.ts +++ b/packages/core/src/sdk/DatadogProvider/Buffer/BoundedBuffer.ts @@ -41,7 +41,7 @@ export class BoundedBuffer extends DatadogBuffer { message: string; stack: string; kind: string; - occurences: number; + occurrences: number; }; } = {}; @@ -184,22 +184,22 @@ export class BoundedBuffer extends DatadogBuffer { kind: string ) => { if (this.telemetryBuffer[kind]) { - this.telemetryBuffer[kind].occurences++; + this.telemetryBuffer[kind].occurrences++; } else { this.telemetryBuffer[kind] = { message, stack, kind, - occurences: 1 + occurrences: 1 }; } }; private drainTelemetry = () => { Object.values(this.telemetryBuffer).forEach( - ({ message, stack, kind, occurences }) => { + ({ message, stack, kind, occurrences }) => { DdSdk.telemetryError( - `${message} happened ${occurences} times.`, + `${message} happened ${occurrences} times.`, stack, kind ); diff --git a/packages/core/src/sdk/DatadogProvider/DatadogProvider.tsx b/packages/core/src/sdk/DatadogProvider/DatadogProvider.tsx index 0e909ca20..fbbfdb4b8 100644 --- a/packages/core/src/sdk/DatadogProvider/DatadogProvider.tsx +++ b/packages/core/src/sdk/DatadogProvider/DatadogProvider.tsx @@ -51,7 +51,7 @@ const isConfigurationPartial = ( return false; } if (configuration instanceof DdSdkReactNativeConfiguration) { - // Not using InternalLog here as it is not yet instanciated + // Not using InternalLog here as it is not yet instantiated console.warn( 'A DdSdkReactNativeConfiguration was passed to DatadogProvider. Please use DatadogProviderConfiguration instead.' ); diff --git a/packages/core/src/sdk/EventMappers/EventMapper.ts b/packages/core/src/sdk/EventMappers/EventMapper.ts index 942dd8314..beafcf420 100644 --- a/packages/core/src/sdk/EventMappers/EventMapper.ts +++ b/packages/core/src/sdk/EventMappers/EventMapper.ts @@ -26,7 +26,7 @@ export type AdditionalEventDataForMapper = { * * @param eventMapper the user-registered event mapper * @param formatRawEventForMapper formatter that gets the raw event (from javascript call) and returns the input given to the mapper - * @param formatMapperEventForNative formatter that gets the ouput of the mapper, and returns the input given to the native SDKs + * @param formatMapperEventForNative formatter that gets the output of the mapper, and returns the input given to the native SDKs * @param formatRawEventForNative called when no event mapper is registered */ export class EventMapper { diff --git a/packages/core/src/specs/NativeDdLogs.ts b/packages/core/src/specs/NativeDdLogs.ts index 275aeb535..47377c72f 100644 --- a/packages/core/src/specs/NativeDdLogs.ts +++ b/packages/core/src/specs/NativeDdLogs.ts @@ -59,7 +59,7 @@ export interface Spec extends TurboModule { ) => Promise; /** - * Send a log containing an error with INDO level. + * Send a log containing an error with INFO level. * @param message: The message to send. * @param errorKind: The error kind to send. * @param errorMessage: The error message to send. diff --git a/packages/react-navigation/README.md b/packages/react-navigation/README.md index 7367a78f3..66f7ceed7 100644 --- a/packages/react-navigation/README.md +++ b/packages/react-navigation/README.md @@ -20,7 +20,7 @@ yarn add @datadog/mobile-react-navigation ### Track view navigation -To track changes in navigation as RUM Views, set the `onready` callback of your `NavigationContainer` component as follow. You can use the optional `ViewNamePredicate` parameter to replace the automatically detected View name with something more relevant to your use case. +To track changes in navigation as RUM Views, set the `onReady` callback of your `NavigationContainer` component as follow. You can use the optional `ViewNamePredicate` parameter to replace the automatically detected View name with something more relevant to your use case. Returning `null` in the `ViewNamePredicate` prevents the new RUM View from being created. The previous RUM View remains active.