@datadog/mobile-react-navigation 2.14.1 → 3.0.0
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 +40 -5
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/DdRumReactNavigationTracking.js +128 -65
- package/lib/commonjs/rum/instrumentation/DdRumReactNavigationTracking.js.map +1 -1
- package/lib/commonjs/rum/instrumentation/utils.js +31 -0
- package/lib/commonjs/rum/instrumentation/utils.js.map +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/rum/instrumentation/DdRumReactNavigationTracking.js +127 -64
- package/lib/module/rum/instrumentation/DdRumReactNavigationTracking.js.map +1 -1
- package/lib/module/rum/instrumentation/utils.js +25 -0
- package/lib/module/rum/instrumentation/utils.js.map +1 -0
- package/lib/typescript/core/src/DdAttributes.d.ts.map +1 -0
- package/lib/typescript/core/src/DdSdkReactNative.d.ts +49 -12
- package/lib/typescript/core/src/DdSdkReactNative.d.ts.map +1 -1
- package/lib/typescript/core/src/InternalLog.d.ts +1 -1
- package/lib/typescript/core/src/InternalLog.d.ts.map +1 -1
- package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts +12 -0
- package/lib/typescript/core/src/config/DatadogProviderConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts +17 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts +52 -0
- package/lib/typescript/core/src/config/FileBasedConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts +60 -0
- package/lib/typescript/core/src/config/async/AutoInstrumentationConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts +47 -0
- package/lib/typescript/core/src/config/async/PartialInitializationConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts +5 -0
- package/lib/typescript/core/src/config/async/asyncInitializationHelper.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts +52 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts +90 -0
- package/lib/typescript/core/src/config/features/CoreConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts +54 -0
- package/lib/typescript/core/src/config/features/CoreConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts +17 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts +24 -0
- package/lib/typescript/core/src/config/features/LogsConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts +6 -0
- package/lib/typescript/core/src/config/features/LogsConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.d.ts +66 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts +131 -0
- package/lib/typescript/core/src/config/features/RumConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts +25 -0
- package/lib/typescript/core/src/config/features/RumConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts +10 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts +11 -0
- package/lib/typescript/core/src/config/features/TraceConfiguration.type.d.ts.map +1 -0
- package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts +4 -0
- package/lib/typescript/core/src/config/features/TraceConfigurationNative.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts +18 -0
- package/lib/typescript/core/src/config/types/BatchProcessingLevel.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/BatchSize.d.ts +19 -0
- package/lib/typescript/core/src/config/types/BatchSize.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/InitializationMode.d.ts +5 -0
- package/lib/typescript/core/src/config/types/InitializationMode.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts +2 -0
- package/lib/typescript/core/src/config/types/InitializationModeForTelemetry.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/ProxyConfiguration.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/SdkVerbosity.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/TrackingConsent.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/UploadFrequency.d.ts +18 -0
- package/lib/typescript/core/src/config/types/UploadFrequency.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts +7 -0
- package/lib/typescript/core/src/config/types/VitalsUpdateFrequency.d.ts.map +1 -0
- package/lib/typescript/core/src/config/types/index.d.ts +10 -0
- package/lib/typescript/core/src/config/types/index.d.ts.map +1 -0
- package/lib/typescript/core/src/index.d.ts +20 -9
- package/lib/typescript/core/src/index.d.ts.map +1 -1
- package/lib/typescript/core/src/logs/DdLogs.d.ts +2 -1
- package/lib/typescript/core/src/logs/DdLogs.d.ts.map +1 -1
- package/lib/typescript/core/src/logs/eventMapper.d.ts +3 -2
- package/lib/typescript/core/src/logs/eventMapper.d.ts.map +1 -1
- package/lib/typescript/core/src/logs/types.d.ts +1 -16
- package/lib/typescript/core/src/logs/types.d.ts.map +1 -1
- package/lib/typescript/core/src/nativeModulesTypes.d.ts +2 -15
- package/lib/typescript/core/src/nativeModulesTypes.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/DdRum.d.ts +10 -1
- package/lib/typescript/core/src/rum/DdRum.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts +1 -1
- package/lib/typescript/core/src/rum/eventMappers/errorEventMapper.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/helper.d.ts +10 -0
- package/lib/typescript/core/src/rum/helper.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/DdRumErrorTracking.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts +6 -6
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts +7 -0
- package/lib/typescript/core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts +12 -6
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts +8 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts +5 -17
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts +20 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts +3 -24
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts +12 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts +24 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts.map +1 -0
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts +2 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/XHRProxy.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/XHRProxy/baggageHeaderUtils.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts +1 -1
- package/lib/typescript/core/src/rum/instrumentation/resourceTracking/requestProxy/interfaces/RumResource.d.ts.map +1 -1
- package/lib/typescript/core/src/rum/types.d.ts +47 -7
- package/lib/typescript/core/src/rum/types.d.ts.map +1 -1
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts +15 -0
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/AccountInfoSingleton.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts +6 -0
- package/lib/typescript/core/src/sdk/AccountInfoSingleton/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts +13 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/attributesEncoding.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts +33 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/defaultEncoders.d.ts.map +1 -0
- package/lib/typescript/core/src/{utils → sdk/AttributesEncoding}/errorUtils.d.ts +4 -4
- package/lib/typescript/core/src/sdk/AttributesEncoding/errorUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts +17 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/helpers.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts +21 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/types.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts +7 -0
- package/lib/typescript/core/src/sdk/AttributesEncoding/utils.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts +5 -1
- package/lib/typescript/core/src/sdk/AttributesSingleton/AttributesSingleton.d.ts.map +1 -1
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts +4 -3
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProvider.d.ts.map +1 -1
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts +9 -0
- package/lib/typescript/core/src/sdk/DatadogProvider/DatadogProviderState.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/DdSdk.d.ts +2 -3
- package/lib/typescript/core/src/sdk/DdSdk.d.ts.map +1 -1
- package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts +39 -0
- package/lib/typescript/core/src/sdk/DdSdkInternal.d.ts.map +1 -0
- package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts +3 -1
- package/lib/typescript/core/src/sdk/EventMappers/EventMapper.d.ts.map +1 -1
- package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts +3 -3
- package/lib/typescript/core/src/sdk/GlobalState/GlobalState.d.ts.map +1 -1
- package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts +2 -1
- package/lib/typescript/core/src/sdk/UserInfoSingleton/UserInfoSingleton.d.ts.map +1 -1
- package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts +1 -2
- package/lib/typescript/core/src/sdk/UserInfoSingleton/types.d.ts.map +1 -1
- package/lib/typescript/core/src/specs/NativeDdRum.d.ts +45 -0
- package/lib/typescript/core/src/specs/NativeDdRum.d.ts.map +1 -1
- package/lib/typescript/core/src/specs/NativeDdSdk.d.ts +34 -6
- package/lib/typescript/core/src/specs/NativeDdSdk.d.ts.map +1 -1
- package/lib/typescript/core/src/trace/DdTrace.d.ts +1 -2
- package/lib/typescript/core/src/trace/DdTrace.d.ts.map +1 -1
- package/lib/typescript/core/src/types.d.ts +74 -92
- package/lib/typescript/core/src/types.d.ts.map +1 -1
- package/lib/typescript/core/src/utils/longTasksUtils.d.ts +1 -1
- package/lib/typescript/core/src/utils/longTasksUtils.d.ts.map +1 -1
- package/lib/typescript/core/src/utils/singletonUtils.d.ts +2 -0
- package/lib/typescript/core/src/utils/singletonUtils.d.ts.map +1 -0
- package/lib/typescript/core/src/version.d.ts +1 -1
- package/lib/typescript/core/src/version.d.ts.map +1 -1
- package/lib/typescript/react-navigation/src/index.d.ts +2 -2
- package/lib/typescript/react-navigation/src/index.d.ts.map +1 -1
- package/lib/typescript/react-navigation/src/rum/instrumentation/DdRumReactNavigationTracking.d.ts +41 -24
- package/lib/typescript/react-navigation/src/rum/instrumentation/DdRumReactNavigationTracking.d.ts.map +1 -1
- package/lib/typescript/react-navigation/src/rum/instrumentation/utils.d.ts +13 -0
- package/lib/typescript/react-navigation/src/rum/instrumentation/utils.d.ts.map +1 -0
- package/package.json +3 -3
- package/src/__tests__/rum/instrumentation/DdRumReactNavigationTracking.test.tsx +147 -14
- package/src/index.tsx +12 -2
- package/src/rum/instrumentation/DdRumReactNavigationTracking.tsx +168 -101
- package/src/rum/instrumentation/utils.ts +28 -0
- package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts +0 -376
- package/lib/typescript/core/src/DdSdkReactNativeConfiguration.d.ts.map +0 -1
- package/lib/typescript/core/src/ProxyConfiguration.d.ts.map +0 -1
- package/lib/typescript/core/src/SdkVerbosity.d.ts.map +0 -1
- package/lib/typescript/core/src/TrackingConsent.d.ts.map +0 -1
- package/lib/typescript/core/src/rum/DdAttributes.d.ts.map +0 -1
- package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts +0 -4
- package/lib/typescript/core/src/rum/sessionId/sessionIdHelper.d.ts.map +0 -1
- package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts +0 -34
- package/lib/typescript/core/src/sdk/FileBasedConfiguration/FileBasedConfiguration.d.ts.map +0 -1
- package/lib/typescript/core/src/utils/argsUtils.d.ts +0 -8
- package/lib/typescript/core/src/utils/argsUtils.d.ts.map +0 -1
- package/lib/typescript/core/src/utils/errorUtils.d.ts.map +0 -1
- /package/lib/typescript/core/src/{rum/DdAttributes.d.ts → DdAttributes.d.ts} +0 -0
- /package/lib/typescript/core/src/{ProxyConfiguration.d.ts → config/types/ProxyConfiguration.d.ts} +0 -0
- /package/lib/typescript/core/src/{SdkVerbosity.d.ts → config/types/SdkVerbosity.d.ts} +0 -0
- /package/lib/typescript/core/src/{TrackingConsent.d.ts → config/types/TrackingConsent.d.ts} +0 -0
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { DdSdkNativeConfiguration } from '../config/features/CoreConfigurationNative';
|
|
2
|
+
import type { DdNativeSdkType } from '../nativeModulesTypes';
|
|
3
|
+
import type { AttributeEncoder } from './AttributesEncoding/types';
|
|
4
|
+
declare const NativeDdSdk: DdNativeSdkType;
|
|
5
|
+
export type DdSdkType = {
|
|
6
|
+
readonly attributeEncoders: AttributeEncoder<any>[];
|
|
7
|
+
/**
|
|
8
|
+
* Initializes Datadog's features.
|
|
9
|
+
* @param configuration: The configuration to use.
|
|
10
|
+
*/
|
|
11
|
+
initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
|
|
12
|
+
};
|
|
13
|
+
export declare class DdSdkWrapper implements DdNativeSdkType {
|
|
14
|
+
get attributeEncoders(): AttributeEncoder<any>[];
|
|
15
|
+
private _attributeEncoders;
|
|
16
|
+
initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
|
|
17
|
+
getConstants(): {};
|
|
18
|
+
setUserInfo(user: object): Promise<object>;
|
|
19
|
+
clearUserInfo(): Promise<void>;
|
|
20
|
+
addUserExtraInfo(extraInfo: object): Promise<object>;
|
|
21
|
+
addAttribute(key: string, value: object): Promise<void>;
|
|
22
|
+
removeAttribute(key: string): Promise<void>;
|
|
23
|
+
addAttributes(attributes: object): Promise<void>;
|
|
24
|
+
removeAttributes(keys: string[]): Promise<void>;
|
|
25
|
+
setAccountInfo(account: object): Promise<object>;
|
|
26
|
+
clearAccountInfo(): Promise<void>;
|
|
27
|
+
addAccountExtraInfo(extraInfo: object): Promise<object>;
|
|
28
|
+
setTrackingConsent(trackingConsent: string): Promise<void>;
|
|
29
|
+
sendTelemetryLog(message: string, attributes: object, config: object): Promise<void>;
|
|
30
|
+
telemetryDebug(message: string): Promise<void>;
|
|
31
|
+
telemetryError(message: string, stack: string, kind: string): Promise<void>;
|
|
32
|
+
consumeWebviewEvent(message: string): Promise<void>;
|
|
33
|
+
clearAllData(): Promise<void>;
|
|
34
|
+
addListener(eventType: string): void;
|
|
35
|
+
removeListeners(count: number): void;
|
|
36
|
+
_setAttributeEncodersForTesting(attributeEncoders: AttributeEncoder<any>[]): void;
|
|
37
|
+
}
|
|
38
|
+
export { NativeDdSdk };
|
|
39
|
+
//# sourceMappingURL=DdSdkInternal.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DdSdkInternal.d.ts","sourceRoot":"","sources":["../../../../../../core/src/sdk/DdSdkInternal.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,4CAA4C,CAAC;AAC3F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAE7D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAGnE,QAAA,MAA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AAE,MAAM,EAClB,MAAM,EAAE,MAAM,GACf,OAAO,CAAC,IAAI,CAAC;IAIhB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAI9C,cAAc,CACV,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,GACb,OAAO,CAAC,IAAI,CAAC;IAIhB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IAInD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI7B,WAAW,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIpC,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAIpC,+BAA+B,CAC3B,iBAAiB,EAAE,gBAAgB,CAAC,GAAG,CAAC,EAAE;CAIjD;AAED,OAAO,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
+
import type { AccountInfo } from '../AccountInfoSingleton/types';
|
|
1
2
|
import type { Attributes } from '../AttributesSingleton/types';
|
|
2
3
|
import type { UserInfo } from '../UserInfoSingleton/types';
|
|
3
4
|
export type AdditionalEventDataForMapper = {
|
|
4
|
-
userInfo
|
|
5
|
+
userInfo?: UserInfo;
|
|
6
|
+
accountInfo?: AccountInfo;
|
|
5
7
|
attributes: Attributes;
|
|
6
8
|
};
|
|
7
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/EventMappers/EventMapper.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"EventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/EventMappers/EventMapper.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAEjE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAG/D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AAI3D,MAAM,MAAM,4BAA4B,GAAG;IACvC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,UAAU,EAAE,UAAU,CAAC;CAC1B,CAAC;AAEF;;;;;;;;;GASG;AACH,qBAAa,WAAW,CAAC,QAAQ,EAAE,WAAW,EAAE,WAAW;IACvD,OAAO,CAAC,WAAW,CAAC,CAA6C;IACjE,OAAO,CAAC,uBAAuB,CAGd;IACjB,OAAO,CAAC,0BAA0B,CAGjB;IACjB,OAAO,CAAC,uBAAuB,CAAmC;gBAG9D,WAAW,EAAE,CAAC,CAAC,KAAK,EAAE,WAAW,KAAK,WAAW,GAAG,IAAI,CAAC,GAAG,SAAS,EACrE,uBAAuB,EAAE,CACrB,KAAK,EAAE,QAAQ,EACf,cAAc,EAAE,4BAA4B,KAC3C,WAAW,EAChB,0BAA0B,EAAE,CACxB,KAAK,EAAE,WAAW,EAClB,aAAa,EAAE,WAAW,KACzB,WAAW,EAChB,uBAAuB,EAAE,CAAC,KAAK,EAAE,QAAQ,KAAK,WAAW;IAQtD,gBAAgB,aAAc,QAAQ,KAAG,WAAW,GAAG,IAAI,CAiChE;CACL"}
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
* A singleton container for attributes that are shared internally across all
|
|
3
3
|
* the SDK classes.
|
|
4
4
|
*/
|
|
5
|
-
|
|
5
|
+
declare class _GlobalState {
|
|
6
6
|
/**
|
|
7
7
|
* `true` if the SDK is initialized, `false` otherwise.
|
|
8
8
|
*/
|
|
9
9
|
isInitialized: boolean;
|
|
10
|
-
private static _instance;
|
|
11
|
-
static get instance(): GlobalState;
|
|
12
10
|
}
|
|
11
|
+
export declare const GlobalState: _GlobalState;
|
|
12
|
+
export {};
|
|
13
13
|
//# sourceMappingURL=GlobalState.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalState.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/GlobalState/GlobalState.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GlobalState.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/GlobalState/GlobalState.tsx"],"names":[],"mappings":"AAUA;;;GAGG;AACH,cAAM,YAAY;IACd;;OAEG;IACI,aAAa,UAAS;CAChC;AAED,eAAO,MAAM,WAAW,cAGvB,CAAC"}
|
|
@@ -2,7 +2,8 @@ import type { UserInfo } from './types';
|
|
|
2
2
|
declare class UserInfoProvider {
|
|
3
3
|
private userInfo;
|
|
4
4
|
setUserInfo: (userInfo: UserInfo) => void;
|
|
5
|
-
getUserInfo: () => UserInfo;
|
|
5
|
+
getUserInfo: () => UserInfo | undefined;
|
|
6
|
+
clearUserInfo: () => void;
|
|
6
7
|
}
|
|
7
8
|
export declare class UserInfoSingleton {
|
|
8
9
|
private static userInfoProvider;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserInfoSingleton.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/UserInfoSingleton/UserInfoSingleton.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UserInfoSingleton.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/UserInfoSingleton/UserInfoSingleton.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAExC,cAAM,gBAAgB;IAClB,OAAO,CAAC,QAAQ,CAAmC;IAEnD,WAAW,aAAc,QAAQ,UAG/B;IAEF,WAAW,QAAO,QAAQ,GAAG,SAAS,CAEpC;IAEF,aAAa,aAEX;CACL;AAED,qBAAa,iBAAiB;IAC1B,OAAO,CAAC,MAAM,CAAC,gBAAgB,CAA0B;IAEzD,MAAM,CAAC,WAAW,QAAO,gBAAgB,CAEvC;IAEF,MAAM,CAAC,KAAK,aAEV;CACL"}
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export type UserInfo = {
|
|
2
|
-
readonly id
|
|
2
|
+
readonly id: string;
|
|
3
3
|
readonly name?: string;
|
|
4
4
|
readonly email?: string;
|
|
5
5
|
readonly extraInfo?: Record<string, unknown>;
|
|
6
|
-
readonly [key: string]: unknown /** @deprecated To be removed alongside DdSdkReactnative.setUser */;
|
|
7
6
|
};
|
|
8
7
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/UserInfoSingleton/types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,QAAQ,GAAG;IACnB,QAAQ,CAAC,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/sdk/UserInfoSingleton/types.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,QAAQ,GAAG;IACnB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAChD,CAAC"}
|
|
@@ -77,6 +77,27 @@ export interface Spec extends TurboModule {
|
|
|
77
77
|
* @param name: The name of the new custom timing attribute. Timings can be nested up to 8 levels deep. Names using more than 8 levels will be sanitized by SDK.
|
|
78
78
|
*/
|
|
79
79
|
addTiming(name: string): Promise<void>;
|
|
80
|
+
/**
|
|
81
|
+
* Adds a custom attribute to the active RUM View. It will be propagated to all future RUM events associated with the active View.
|
|
82
|
+
* @param key: key for this view attribute.
|
|
83
|
+
* @param value: value for this attribute.
|
|
84
|
+
*/
|
|
85
|
+
addViewAttribute(key: string, value: Object): Promise<void>;
|
|
86
|
+
/**
|
|
87
|
+
* Removes an attribute from the active RUM View.
|
|
88
|
+
* @param key: key for the attribute to be removed from the view.
|
|
89
|
+
*/
|
|
90
|
+
removeViewAttribute(key: string): Promise<void>;
|
|
91
|
+
/**
|
|
92
|
+
* Adds multiple attributes to the active RUM View. They will be propagated to all future RUM events associated with the active View.
|
|
93
|
+
* @param attributes: key/value object containing all attributes to be added to the view.
|
|
94
|
+
*/
|
|
95
|
+
addViewAttributes(attributes: Object): Promise<void>;
|
|
96
|
+
/**
|
|
97
|
+
* Removes multiple attributes from the active RUM View.
|
|
98
|
+
* @param keys: keys for the attributes to be removed from the view.
|
|
99
|
+
*/
|
|
100
|
+
removeViewAttributes(keys: string[]): Promise<void>;
|
|
80
101
|
/**
|
|
81
102
|
* Adds the loading time of the view to the active view.
|
|
82
103
|
* It is calculated as the difference between the current time and the start time of the view.
|
|
@@ -98,6 +119,30 @@ export interface Spec extends TurboModule {
|
|
|
98
119
|
* Get current Session ID, or `undefined` if not available.
|
|
99
120
|
*/
|
|
100
121
|
getCurrentSessionId(): Promise<string | undefined>;
|
|
122
|
+
/**
|
|
123
|
+
* Starts a Feature Operation, representing a high-level logical flow within your application (e.g., `login_flow`).
|
|
124
|
+
* @param name - The name of the feature operation (for example, `"login_flow"`).
|
|
125
|
+
* @param operationKey - An optional key to uniquely identify a specific instance of this operation when multiple are running concurrently.
|
|
126
|
+
* @param attributes - Custom attributes to attach to this operation.
|
|
127
|
+
*/
|
|
128
|
+
startFeatureOperation(name: string, operationKey: string | null, attributes: Object): Promise<void>;
|
|
129
|
+
/**
|
|
130
|
+
* Marks a Feature Operation as successfully completed.
|
|
131
|
+
* Should be called when a previously started operation (via `startFeatureOperation`) finishes without error.
|
|
132
|
+
* @param name - The name of the feature operation (for example, `"login_flow"`).
|
|
133
|
+
* @param operationKey - The key for the operation instance to complete, if it was specified when starting it.
|
|
134
|
+
* @param attributes - Custom attributes to attach to this operation’s completion event.
|
|
135
|
+
*/
|
|
136
|
+
succeedFeatureOperation(name: string, operationKey: string | null, attributes: Object): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Marks a Feature Operation as failed.
|
|
139
|
+
* Should be called when a previously started operation (via `startFeatureOperation`) ends with an error.
|
|
140
|
+
* @param name - The name of the feature operation (for example, `"login_flow"`).
|
|
141
|
+
* @param operationKey - The key for the operation instance to fail, if it was specified when starting it.
|
|
142
|
+
* @param reason - The reason for the failure.
|
|
143
|
+
* @param attributes - Custom attributes to attach to this operation’s failure event.
|
|
144
|
+
*/
|
|
145
|
+
failFeatureOperation(name: string, operationKey: string | null, reason: string, attributes: Object): Promise<void>;
|
|
101
146
|
}
|
|
102
147
|
declare const _default: Spec | null;
|
|
103
148
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeDdRum.d.ts","sourceRoot":"","sources":["../../../../../../core/src/specs/NativeDdRum.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD;;GAEG;AACH,MAAM,WAAW,IAAK,SAAQ,WAAW;IACrC,QAAQ,CAAC,YAAY,EAAE,MAAM,EAAE,CAAC;IAEhC;;;;;;OAMG;IACH,SAAS,CACL,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;OAKG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE3E;;;;;;OAMG;IACH,WAAW,CACP,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,UAAU,CACN,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WA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;;;;OAKG;IACH,qBAAqB,CACjB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,UAAU,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;OAMG;IACH,uBAAuB,CACnB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,UAAU,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;OAOG;IACH,oBAAoB,CAChB,IAAI,EAAE,MAAM,EACZ,YAAY,EAAE,MAAM,GAAG,IAAI,EAC3B,MAAM,EAAE,MAAM,EACd,UAAU,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB;;AAGD,wBAAsD"}
|
|
@@ -13,26 +13,54 @@ export interface Spec extends TurboModule {
|
|
|
13
13
|
*/
|
|
14
14
|
initialize(configuration: Object): Promise<void>;
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Adds a specific attribute to the global context attached with all future Logs, Spans and RUM.
|
|
17
|
+
* @param key: Key that identifies the attribute.
|
|
18
|
+
* @param value: Value linked to the attribute.
|
|
19
|
+
*/
|
|
20
|
+
addAttribute(key: string, value: Object): Promise<void>;
|
|
21
|
+
/**
|
|
22
|
+
* Removes an attribute from the context attached with all future Logs, Spans and RUM events.
|
|
23
|
+
* @param key: They key associated with the attribute to be removed.
|
|
24
|
+
*/
|
|
25
|
+
removeAttribute(key: string): Promise<void>;
|
|
26
|
+
/**
|
|
27
|
+
* Adds the global context (set of attributes) attached with all future Logs, Spans and RUM events.
|
|
17
28
|
* @param attributes: The global context attributes.
|
|
18
29
|
*/
|
|
19
|
-
|
|
30
|
+
addAttributes(attributes: Object): Promise<void>;
|
|
20
31
|
/**
|
|
21
|
-
*
|
|
22
|
-
* @
|
|
23
|
-
* @param user: The user object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute).
|
|
32
|
+
* Removes a set of attributes from the context attached with all future Logs, Spans and RUM events.
|
|
33
|
+
* @param keys: They keys associated with the attributes to be removed.
|
|
24
34
|
*/
|
|
25
|
-
|
|
35
|
+
removeAttributes(keys: string[]): Promise<void>;
|
|
26
36
|
/**
|
|
27
37
|
* Set the user information.
|
|
28
38
|
* @param user: The user object (use builtin attributes: 'id', 'email', 'name', and any custom attribute under extraInfo).
|
|
29
39
|
*/
|
|
30
40
|
setUserInfo(user: Object): Promise<Object>;
|
|
41
|
+
/**
|
|
42
|
+
* Clears the user information.
|
|
43
|
+
*/
|
|
44
|
+
clearUserInfo(): Promise<void>;
|
|
31
45
|
/**
|
|
32
46
|
* Add custom attributes to the current user information
|
|
33
47
|
* @param extraInfo: The extraInfo object containing additionall custom attributes
|
|
34
48
|
*/
|
|
35
49
|
addUserExtraInfo(extraInfo: Object): Promise<Object>;
|
|
50
|
+
/**
|
|
51
|
+
* Set the account information.
|
|
52
|
+
* @param account: The account object (use builtin attributes: 'id', 'name', and any custom attribute under extraInfo).
|
|
53
|
+
*/
|
|
54
|
+
setAccountInfo(account: Object): Promise<Object>;
|
|
55
|
+
/**
|
|
56
|
+
* Clears the account information.
|
|
57
|
+
*/
|
|
58
|
+
clearAccountInfo(): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Add custom attributes to the current account information
|
|
61
|
+
* @param extraInfo: The extraInfo object containing additional custom attributes
|
|
62
|
+
*/
|
|
63
|
+
addAccountExtraInfo(extraInfo: Object): Promise<Object>;
|
|
36
64
|
/**
|
|
37
65
|
* Set the tracking consent regarding the data collection.
|
|
38
66
|
* @param trackingConsent: Consent, which can take one of the following values: 'pending', 'granted', 'not_granted'.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeDdSdk.d.ts","sourceRoot":"","sources":["../../../../../../core/src/specs/NativeDdSdk.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAGhD;;GAEG;AAEH,MA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../../../../../core/src/trace/DdTrace.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DdTrace.d.ts","sourceRoot":"","sources":["../../../../../../core/src/trace/DdTrace.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAkD5C,eAAO,MAAM,OAAO,EAAE,WAGrB,CAAC"}
|
|
@@ -1,86 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DdSdkNativeConfiguration } from './config/features/CoreConfigurationNative';
|
|
2
2
|
declare global {
|
|
3
3
|
var __DD_RN_BABEL_PLUGIN_ENABLED__: boolean;
|
|
4
4
|
}
|
|
5
|
-
/**
|
|
6
|
-
* A configuration object to initialize Datadog's features.
|
|
7
|
-
*/
|
|
8
|
-
export declare class DdSdkConfiguration {
|
|
9
|
-
readonly clientToken: string;
|
|
10
|
-
readonly env: string;
|
|
11
|
-
readonly applicationId: string;
|
|
12
|
-
readonly nativeCrashReportEnabled: boolean;
|
|
13
|
-
readonly nativeLongTaskThresholdMs: number;
|
|
14
|
-
readonly longTaskThresholdMs: number;
|
|
15
|
-
readonly sampleRate: number;
|
|
16
|
-
readonly site: string;
|
|
17
|
-
readonly trackingConsent: string;
|
|
18
|
-
readonly additionalConfiguration: object;
|
|
19
|
-
readonly telemetrySampleRate: number;
|
|
20
|
-
readonly vitalsUpdateFrequency: string;
|
|
21
|
-
readonly uploadFrequency: string;
|
|
22
|
-
readonly batchSize: string;
|
|
23
|
-
readonly trackFrustrations: boolean;
|
|
24
|
-
readonly trackBackgroundEvents: boolean;
|
|
25
|
-
readonly customEndpoints: {
|
|
26
|
-
rum?: string;
|
|
27
|
-
trace?: string;
|
|
28
|
-
logs?: string;
|
|
29
|
-
};
|
|
30
|
-
readonly configurationForTelemetry: {
|
|
31
|
-
initializationType: string;
|
|
32
|
-
trackErrors: boolean;
|
|
33
|
-
trackInteractions: boolean;
|
|
34
|
-
trackNetworkRequests: boolean;
|
|
35
|
-
reactVersion: string;
|
|
36
|
-
reactNativeVersion: string;
|
|
37
|
-
};
|
|
38
|
-
readonly nativeViewTracking: boolean;
|
|
39
|
-
readonly nativeInteractionTracking: boolean;
|
|
40
|
-
readonly verbosity: string | undefined;
|
|
41
|
-
readonly proxyConfig: {
|
|
42
|
-
type: string;
|
|
43
|
-
address: string;
|
|
44
|
-
port: number;
|
|
45
|
-
username?: string;
|
|
46
|
-
password?: string;
|
|
47
|
-
} | undefined;
|
|
48
|
-
readonly serviceName: string | undefined;
|
|
49
|
-
readonly firstPartyHosts: {
|
|
50
|
-
match: string;
|
|
51
|
-
propagatorTypes: string[];
|
|
52
|
-
}[];
|
|
53
|
-
readonly bundleLogsWithRum: boolean;
|
|
54
|
-
readonly bundleLogsWithTraces: boolean;
|
|
55
|
-
readonly trackNonFatalAnrs: boolean | undefined;
|
|
56
|
-
readonly appHangThreshold: number | undefined;
|
|
57
|
-
readonly resourceTracingSamplingRate: number;
|
|
58
|
-
readonly trackWatchdogTerminations: boolean | undefined;
|
|
59
|
-
readonly batchProcessingLevel: BatchProcessingLevel;
|
|
60
|
-
readonly initialResourceThreshold: number | undefined;
|
|
61
|
-
constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, nativeLongTaskThresholdMs: number, longTaskThresholdMs: number, sampleRate: number, site: string, trackingConsent: string, additionalConfiguration: object, telemetrySampleRate: number, vitalsUpdateFrequency: string, uploadFrequency: string, batchSize: string, trackFrustrations: boolean, trackBackgroundEvents: boolean, customEndpoints: {
|
|
62
|
-
rum?: string;
|
|
63
|
-
trace?: string;
|
|
64
|
-
logs?: string;
|
|
65
|
-
}, configurationForTelemetry: {
|
|
66
|
-
initializationType: string;
|
|
67
|
-
trackErrors: boolean;
|
|
68
|
-
trackInteractions: boolean;
|
|
69
|
-
trackNetworkRequests: boolean;
|
|
70
|
-
reactVersion: string;
|
|
71
|
-
reactNativeVersion: string;
|
|
72
|
-
}, nativeViewTracking: boolean, nativeInteractionTracking: boolean, verbosity: string | undefined, proxyConfig: {
|
|
73
|
-
type: string;
|
|
74
|
-
address: string;
|
|
75
|
-
port: number;
|
|
76
|
-
username?: string;
|
|
77
|
-
password?: string;
|
|
78
|
-
} | undefined, serviceName: string | undefined, firstPartyHosts: {
|
|
79
|
-
match: string;
|
|
80
|
-
propagatorTypes: string[];
|
|
81
|
-
}[], bundleLogsWithRum: boolean, bundleLogsWithTraces: boolean, trackNonFatalAnrs: boolean | undefined, appHangThreshold: number | undefined, resourceTracingSamplingRate: number, trackWatchdogTerminations: boolean | undefined, batchProcessingLevel: BatchProcessingLevel, // eslint-disable-next-line no-empty-function
|
|
82
|
-
initialResourceThreshold: number | undefined);
|
|
83
|
-
}
|
|
84
5
|
/**
|
|
85
6
|
* The entry point to initialize Datadog's features.
|
|
86
7
|
*/
|
|
@@ -89,18 +10,28 @@ export type DdSdkType = {
|
|
|
89
10
|
* Initializes Datadog's features.
|
|
90
11
|
* @param configuration: The configuration to use.
|
|
91
12
|
*/
|
|
92
|
-
initialize(configuration:
|
|
13
|
+
initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Sets a specific attribute in the global context attached with all future Logs, Spans and RUM
|
|
16
|
+
* @param key: Key that identifies the attribute.
|
|
17
|
+
* @param value: Value linked to the attribute.
|
|
18
|
+
*/
|
|
19
|
+
addAttribute(key: string, value: object): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Removes an attribute from the context attached with all future Logs, Spans and RUM events.
|
|
22
|
+
* @param key: They key associated with the attribute to be removed.
|
|
23
|
+
*/
|
|
24
|
+
removeAttribute(key: string): Promise<void>;
|
|
93
25
|
/**
|
|
94
26
|
* Sets the global context (set of attributes) attached with all future Logs, Spans and RUM events.
|
|
95
27
|
* @param attributes: The global context attributes.
|
|
96
28
|
*/
|
|
97
|
-
|
|
29
|
+
addAttributes(attributes: object): Promise<void>;
|
|
98
30
|
/**
|
|
99
|
-
*
|
|
100
|
-
* @
|
|
101
|
-
* @param user: The user object (use builtin attributes: 'id', 'email', 'name', and/or any custom attribute).
|
|
31
|
+
* Removes a set of attributes from the context attached with all future Logs, Spans and RUM events.
|
|
32
|
+
* @param keys: They keys associated with the attributes to be removed.
|
|
102
33
|
*/
|
|
103
|
-
|
|
34
|
+
removeAttributes(keys: string[]): Promise<void>;
|
|
104
35
|
/**
|
|
105
36
|
* Sets the user information.
|
|
106
37
|
* @param id: A unique user identifier (relevant to your business domain)
|
|
@@ -109,23 +40,37 @@ export type DdSdkType = {
|
|
|
109
40
|
* @param extraInfo: Additional information.
|
|
110
41
|
*/
|
|
111
42
|
setUserInfo(userInfo: UserInfo): Promise<void>;
|
|
43
|
+
/**
|
|
44
|
+
* Clears the user information.
|
|
45
|
+
*/
|
|
46
|
+
clearUserInfo(): Promise<void>;
|
|
112
47
|
/**
|
|
113
48
|
* Add additional user information.
|
|
114
49
|
* @param extraUserInfo: The additional information. (To set the id, name or email please user setUserInfo).
|
|
115
50
|
*/
|
|
116
51
|
addUserExtraInfo(extraUserInfo: Record<string, unknown>): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Sets the account information.
|
|
54
|
+
* @param id: A unique account identifier (relevant to your business domain)
|
|
55
|
+
* @param name: The account name.
|
|
56
|
+
* @param extraInfo: Additional information.
|
|
57
|
+
*/
|
|
58
|
+
setAccountInfo(accountInfo: AccountInfo): Promise<void>;
|
|
59
|
+
/**
|
|
60
|
+
* Clears the account information.
|
|
61
|
+
*/
|
|
62
|
+
clearAccountInfo(): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* Add additional account information.
|
|
65
|
+
* @param extraAccountInfo: The additional information. (To set the id or name please use setAccountInfo).
|
|
66
|
+
*/
|
|
67
|
+
addAccountExtraInfo(extraAccountInfo: Record<string, unknown>): Promise<void>;
|
|
117
68
|
/**
|
|
118
69
|
* Set the tracking consent regarding the data collection.
|
|
119
70
|
* @param trackingConsent: Consent, which can take one of the following values: 'pending', 'granted', 'not_granted'.
|
|
120
71
|
*/
|
|
121
72
|
setTrackingConsent(trackingConsent: string): Promise<void>;
|
|
122
73
|
};
|
|
123
|
-
export type UserInfo = {
|
|
124
|
-
id: string;
|
|
125
|
-
name?: string;
|
|
126
|
-
email?: string;
|
|
127
|
-
extraInfo?: object;
|
|
128
|
-
};
|
|
129
74
|
/**
|
|
130
75
|
* The entry point to use Datadog's Trace feature.
|
|
131
76
|
*/
|
|
@@ -145,4 +90,41 @@ export type DdTraceType = {
|
|
|
145
90
|
*/
|
|
146
91
|
finishSpan(spanId: string, context?: object, timestampMs?: number): Promise<void>;
|
|
147
92
|
};
|
|
93
|
+
export type UserInfo = {
|
|
94
|
+
id: string;
|
|
95
|
+
name?: string;
|
|
96
|
+
email?: string;
|
|
97
|
+
extraInfo?: object;
|
|
98
|
+
};
|
|
99
|
+
export type AccountInfo = {
|
|
100
|
+
id: string;
|
|
101
|
+
name?: string;
|
|
102
|
+
extraInfo?: object;
|
|
103
|
+
};
|
|
104
|
+
export type LogStatus = 'debug' | 'info' | 'warn' | 'error';
|
|
105
|
+
export type LogEvent = {
|
|
106
|
+
message: string;
|
|
107
|
+
context: object;
|
|
108
|
+
errorKind?: string;
|
|
109
|
+
errorMessage?: string;
|
|
110
|
+
stacktrace?: string;
|
|
111
|
+
fingerprint?: string;
|
|
112
|
+
readonly source?: ErrorSource;
|
|
113
|
+
readonly status: LogStatus;
|
|
114
|
+
readonly userInfo?: UserInfo;
|
|
115
|
+
readonly attributes?: object;
|
|
116
|
+
};
|
|
117
|
+
export type LogEventMapper = (logEvent: LogEvent) => LogEvent | null;
|
|
118
|
+
export declare enum ErrorSource {
|
|
119
|
+
NETWORK = "NETWORK",
|
|
120
|
+
SOURCE = "SOURCE",
|
|
121
|
+
CONSOLE = "CONSOLE",
|
|
122
|
+
WEBVIEW = "WEBVIEW",
|
|
123
|
+
CUSTOM = "CUSTOM"
|
|
124
|
+
}
|
|
125
|
+
export declare enum FeatureOperationFailure {
|
|
126
|
+
ERROR = "ERROR",
|
|
127
|
+
ABANDONED = "ABANDONED",
|
|
128
|
+
OTHER = "OTHER"
|
|
129
|
+
}
|
|
148
130
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../core/src/types.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../core/src/types.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAE1F,OAAO,CAAC,MAAM,CAAC;IAEX,IAAI,8BAA8B,EAAE,OAAO,CAAC;CAC/C;AAED;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACpB;;;OAGG;IACH,UAAU,CAAC,aAAa,EAAE,wBAAwB,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEnE;;;;OAIG;IACH,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExD;;;OAGG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5C;;;OAGG;IACH,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjD;;;OAGG;IACH,gBAAgB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEhD;;;;;;OAMG;IACH,WAAW,CAAC,QAAQ,EAAE,QAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/C;;OAEG;IACH,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE/B;;;OAGG;IACH,gBAAgB,CAAC,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;I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E,MAAM,CAAC;IACnB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,WAAW,CAAC;IAE9B,QAAQ,CAAC,MAAM,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAC7B,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,CAAC,QAAQ,EAAE,QAAQ,KAAK,QAAQ,GAAG,IAAI,CAAC;AAGrE,oBAAY,WAAW;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;IACjB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,MAAM,WAAW;CACpB;AAED,oBAAY,uBAAuB;IAC/B,KAAK,UAAU;IACf,SAAS,cAAc;IACvB,KAAK,UAAU;CAClB"}
|
|
@@ -3,5 +3,5 @@
|
|
|
3
3
|
* Also makes sure it is a number, passing `0` if it is `false`, as the React Native
|
|
4
4
|
* bridge cannot handle values with dual types.
|
|
5
5
|
*/
|
|
6
|
-
export declare const adaptLongTaskThreshold: (longTaskThreshold: number
|
|
6
|
+
export declare const adaptLongTaskThreshold: (longTaskThreshold: number) => number;
|
|
7
7
|
//# sourceMappingURL=longTasksUtils.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"longTasksUtils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/longTasksUtils.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"longTasksUtils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/longTasksUtils.ts"],"names":[],"mappings":"AAUA;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,sBAAuB,MAAM,KAAG,MAYlE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"singletonUtils.d.ts","sourceRoot":"","sources":["../../../../../../core/src/utils/singletonUtils.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,iBAAiB,WACrB,MAAM,kCAUd,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "
|
|
1
|
+
export declare const version = "3.0.0";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../../core/src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../../../../core/src/version.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,OAAO,UAAU,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { ViewNamePredicate } from './rum/instrumentation/DdRumReactNavigationTracking';
|
|
1
|
+
import type { NavigationTrackingOptions, ViewNamePredicate, ViewTrackingPredicate, ParamsTrackingPredicate } from './rum/instrumentation/DdRumReactNavigationTracking';
|
|
2
2
|
import { DdRumReactNavigationTracking } from './rum/instrumentation/DdRumReactNavigationTracking';
|
|
3
3
|
export { DdRumReactNavigationTracking };
|
|
4
|
-
export type { ViewNamePredicate };
|
|
4
|
+
export type { NavigationTrackingOptions, ViewNamePredicate, ViewTrackingPredicate, ParamsTrackingPredicate };
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EACR,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EAC1B,MAAM,oDAAoD,CAAC;AAC5D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oDAAoD,CAAC;AAElG,OAAO,EAAE,4BAA4B,EAAE,CAAC;AAExC,YAAY,EACR,yBAAyB,EACzB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,EAC1B,CAAC"}
|