@datadog/mobile-react-native-code-push 2.14.0 → 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/lib/commonjs/index.js +18 -11
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/index.js +19 -12
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/codepush/src/index.d.ts +2 -2
- package/lib/typescript/codepush/src/index.d.ts.map +1 -1
- 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/package.json +3 -3
- package/src/__tests__/index.test.tsx +106 -75
- package/src/index.ts +35 -17
- 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
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { BatchProcessingLevel, BatchSize, DatadogProviderConfiguration, DdSdkReactNativeConfiguration, InitializationMode, UploadFrequency, VitalsUpdateFrequency } from './DdSdkReactNativeConfiguration';
|
|
2
|
-
import type { AutoInstrumentationConfiguration, PartialInitializationConfiguration } from './DdSdkReactNativeConfiguration';
|
|
3
1
|
import { DdSdkReactNative } from './DdSdkReactNative';
|
|
4
2
|
import { InternalLog } from './InternalLog';
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import { DatadogProviderConfiguration } from './config/DatadogProviderConfiguration';
|
|
4
|
+
import { FileBasedConfiguration } from './config/FileBasedConfiguration';
|
|
5
|
+
import type { AutoInstrumentationConfiguration } from './config/async/AutoInstrumentationConfiguration';
|
|
6
|
+
import type { PartialInitializationConfiguration } from './config/async/PartialInitializationConfiguration';
|
|
7
|
+
import type { CoreConfigurationOptions } from './config/features/CoreConfiguration.type';
|
|
8
|
+
import { CoreConfiguration } from './config/features/CoreConfiguration';
|
|
9
|
+
import type { LogsConfigurationOptions } from './config/features/LogsConfiguration.type';
|
|
10
|
+
import { LogsConfiguration } from './config/features/LogsConfiguration';
|
|
11
|
+
import type { RumConfigurationOptions } from './config/features/RumConfiguration.type';
|
|
12
|
+
import { RumConfiguration } from './config/features/RumConfiguration';
|
|
13
|
+
import type { TraceConfigurationOptions } from './config/features/TraceConfiguration.type';
|
|
14
|
+
import { TraceConfiguration } from './config/features/TraceConfiguration';
|
|
15
|
+
import { ProxyConfiguration, ProxyType } from './config/types/ProxyConfiguration';
|
|
16
|
+
import { SdkVerbosity } from './config/types/SdkVerbosity';
|
|
17
|
+
import { TrackingConsent } from './config/types/TrackingConsent';
|
|
18
|
+
import { BatchProcessingLevel, BatchSize, InitializationMode, UploadFrequency, VitalsUpdateFrequency } from './config/types';
|
|
8
19
|
import { DdLogs } from './logs/DdLogs';
|
|
9
20
|
import { DdRum } from './rum/DdRum';
|
|
10
21
|
import { DdBabelInteractionTracking } from './rum/instrumentation/interactionTracking/DdBabelInteractionTracking';
|
|
@@ -14,14 +25,14 @@ import { DatadogTracingIdentifier } from './rum/instrumentation/resourceTracking
|
|
|
14
25
|
import { TracingIdFormat, TracingIdType } from './rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier';
|
|
15
26
|
import { DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER } from './rum/instrumentation/resourceTracking/graphql/graphqlHeaders';
|
|
16
27
|
import type { FirstPartyHost } from './rum/types';
|
|
17
|
-
import {
|
|
28
|
+
import { PropagatorType, RumActionType } from './rum/types';
|
|
18
29
|
import { DatadogProvider } from './sdk/DatadogProvider/DatadogProvider';
|
|
19
30
|
import { DdSdk } from './sdk/DdSdk';
|
|
20
|
-
import { FileBasedConfiguration } from './sdk/FileBasedConfiguration/FileBasedConfiguration';
|
|
21
31
|
import { DdTrace } from './trace/DdTrace';
|
|
32
|
+
import { ErrorSource, FeatureOperationFailure } from './types';
|
|
22
33
|
import { DefaultTimeProvider } from './utils/time-provider/DefaultTimeProvider';
|
|
23
34
|
import type { Timestamp } from './utils/time-provider/TimeProvider';
|
|
24
35
|
import { TimeProvider } from './utils/time-provider/TimeProvider';
|
|
25
|
-
export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource,
|
|
26
|
-
export type { Timestamp, FirstPartyHost, AutoInstrumentationConfiguration, PartialInitializationConfiguration };
|
|
36
|
+
export { DatadogProvider, DatadogProviderConfiguration, FileBasedConfiguration, InitializationMode, DdLogs, DdTrace, DdRum, RumActionType, ErrorSource, FeatureOperationFailure, CoreConfiguration, RumConfiguration, LogsConfiguration, TraceConfiguration, DdSdkReactNative, DdSdk, InternalLog, ProxyConfiguration, ProxyType, TrackingConsent, SdkVerbosity, VitalsUpdateFrequency, PropagatorType, UploadFrequency, BatchSize, BatchProcessingLevel, TimeProvider, DefaultTimeProvider, DATADOG_GRAPH_QL_OPERATION_TYPE_HEADER, DATADOG_GRAPH_QL_OPERATION_NAME_HEADER, DATADOG_GRAPH_QL_VARIABLES_HEADER, TracingIdType, TracingIdFormat, DatadogTracingIdentifier, DatadogTracingContext, DdBabelInteractionTracking, __ddExtractText };
|
|
37
|
+
export type { Timestamp, FirstPartyHost, AutoInstrumentationConfiguration, PartialInitializationConfiguration, CoreConfigurationOptions, RumConfigurationOptions, LogsConfigurationOptions, TraceConfigurationOptions };
|
|
27
38
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../core/src/index.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,4BAA4B,EAAE,MAAM,uCAAuC,CAAC;AACrF,OAAO,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AACzE,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACxG,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,mDAAmD,CAAC;AAC5G,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AAC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AAE,uBAAuB,EAAE,MAAM,SAAS,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,2CAA2C,CAAC;AAChF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAElE,OAAO,EACH,eAAe,EACf,4BAA4B,EAC5B,sBAAsB,EACtB,kBAAkB,EAClB,MAAM,EACN,OAAO,EACP,KAAK,EACL,aAAa,EACb,WAAW,EACX,uBAAuB,EACvB,iBAAiB,EACjB,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,gBAAgB,EAChB,KAAK,EACL,WAAW,EACX,kBAAkB,EAClB,SAAS,EACT,eAAe,EACf,YAAY,EACZ,qBAAqB,EACrB,cAAc,EACd,eAAe,EACf,SAAS,EACT,oBAAoB,EACpB,YAAY,EACZ,mBAAmB,EACnB,sCAAsC,EACtC,sCAAsC,EACtC,iCAAiC,EACjC,aAAa,EACb,eAAe,EACf,wBAAwB,EACxB,qBAAqB,EACrB,0BAA0B,EAC1B,eAAe,EAClB,CAAC;AACF,YAAY,EACR,SAAS,EACT,cAAc,EACd,gCAAgC,EAChC,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,yBAAyB,EAC5B,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { LogEventMapper } from '../types';
|
|
2
|
+
import type { DdLogsType, LogArguments, LogWithErrorArguments } from './types';
|
|
2
3
|
declare class DdLogsWrapper implements DdLogsType {
|
|
3
4
|
private nativeLogs;
|
|
4
5
|
private logEventMapper;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DdLogs.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/DdLogs.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DdLogs.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/DdLogs.ts"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,UAAU,CAAC;AAI5D,OAAO,KAAK,EACR,UAAU,EACV,YAAY,EACZ,qBAAqB,EAGxB,MAAM,SAAS,CAAC;AAuBjB,cAAM,aAAc,YAAW,UAAU;IAErC,OAAO,CAAC,UAAU,CACL;IACb,OAAO,CAAC,cAAc,CAAkC;IAExD,KAAK,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAapE;IAEF,IAAI,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAanE;IAEF,IAAI,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAanE;IAEF,KAAK,YAAa,YAAY,GAAG,qBAAqB,KAAG,QAAQ,IAAI,CAAC,CAcpE;IAEF;;;OAGG;IACH,OAAO,CAAC,gCAAgC,CAStC;IAEF,OAAO,CAAC,uBAAuB,CAQ7B;IAEF,OAAO,CAAC,eAAe,CAQrB;IAEF,OAAO,CAAC,GAAG,CA+BT;IAEF,OAAO,CAAC,YAAY,CA8DlB;IAEF,sBAAsB,CAAC,cAAc,EAAE,cAAc;IAIrD,wBAAwB;CAG3B;AAED,eAAO,MAAM,MAAM,eAA4D,CAAC"}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import type { Attributes } from '../sdk/AttributesSingleton/types';
|
|
2
2
|
import { EventMapper } from '../sdk/EventMappers/EventMapper';
|
|
3
3
|
import type { UserInfo } from '../sdk/UserInfoSingleton/types';
|
|
4
|
-
import type { LogEvent, LogEventMapper
|
|
4
|
+
import type { LogEvent, LogEventMapper } from '../types';
|
|
5
|
+
import type { NativeLog, NativeLogWithError, RawLog, RawLogWithError } from './types';
|
|
5
6
|
export declare const formatLogEventToNativeLog: (logEvent: LogEvent) => NativeLog | NativeLogWithError;
|
|
6
7
|
export declare const formatRawLogToNativeEvent: (rawLog: RawLog | RawLogWithError) => NativeLog | NativeLogWithError;
|
|
7
8
|
export declare const formatRawLogToLogEvent: (rawLog: RawLog | RawLogWithError, additionalInformation: {
|
|
8
|
-
userInfo
|
|
9
|
+
userInfo?: UserInfo;
|
|
9
10
|
attributes: Attributes;
|
|
10
11
|
}) => LogEvent;
|
|
11
12
|
export declare const generateEventMapper: (logEventMapper: LogEventMapper | undefined) => EventMapper<RawLog | RawLogWithError, LogEvent, NativeLog | NativeLogWithError>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eventMapper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/eventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"eventMapper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/eventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAEzD,OAAO,KAAK,EACR,SAAS,EACT,kBAAkB,EAClB,MAAM,EACN,eAAe,EAClB,MAAM,SAAS,CAAC;AAEjB,eAAO,MAAM,yBAAyB,aACxB,QAAQ,KACnB,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,yBAAyB,WAC1B,MAAM,GAAG,eAAe,KACjC,SAAS,GAAG,kBAEd,CAAC;AAEF,eAAO,MAAM,sBAAsB,WACvB,MAAM,GAAG,eAAe,yBACT;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,UAAU,EAAE,UAAU,CAAC;CAC1B,KACF,QAQF,CAAC;AAEF,eAAO,MAAM,mBAAmB,mBACZ,cAAc,GAAG,SAAS,oFAOzC,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import type { ErrorSource } from '../
|
|
2
|
-
import type { UserInfo } from '../sdk/UserInfoSingleton/types';
|
|
1
|
+
import type { LogStatus, ErrorSource } from '../types';
|
|
3
2
|
/**
|
|
4
3
|
* The entry point to use Datadog's Logs feature.
|
|
5
4
|
*/
|
|
@@ -62,20 +61,6 @@ export type NativeLogWithError = {
|
|
|
62
61
|
context: object;
|
|
63
62
|
fingerprint?: string;
|
|
64
63
|
};
|
|
65
|
-
export type LogStatus = 'debug' | 'info' | 'warn' | 'error';
|
|
66
|
-
export type LogEvent = {
|
|
67
|
-
message: string;
|
|
68
|
-
context: object;
|
|
69
|
-
errorKind?: string;
|
|
70
|
-
errorMessage?: string;
|
|
71
|
-
stacktrace?: string;
|
|
72
|
-
fingerprint?: string;
|
|
73
|
-
readonly source?: ErrorSource;
|
|
74
|
-
readonly status: LogStatus;
|
|
75
|
-
readonly userInfo: UserInfo;
|
|
76
|
-
readonly attributes?: object;
|
|
77
|
-
};
|
|
78
|
-
export type LogEventMapper = (logEvent: LogEvent) => LogEvent | null;
|
|
79
64
|
export type LogArguments = [message: string, context?: object];
|
|
80
65
|
export type LogWithErrorArguments = [
|
|
81
66
|
message: string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../../core/src/logs/types.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvD;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACrB;;;;OAIG;IACH,KAAK,CAA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M,YAAY,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,CAAC;AAE/D,MAAM,MAAM,qBAAqB,GAAG;IAChC,OAAO,EAAE,MAAM;IACf,SAAS,CAAC,EAAE,MAAM;IAClB,YAAY,CAAC,EAAE,MAAM;IACrB,UAAU,CAAC,EAAE,MAAM;IACnB,OAAO,CAAC,EAAE,MAAM;IAChB,WAAW,CAAC,EAAE,MAAM;IACpB,MAAM,CAAC,EAAE,WAAW;CACvB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { DdSdkNativeConfiguration } from './config/features/CoreConfigurationNative';
|
|
1
2
|
import type { Spec as NativeDdLogs } from './specs/NativeDdLogs';
|
|
2
3
|
import type { Spec as NativeDdRum } from './specs/NativeDdRum';
|
|
3
4
|
import type { Spec as NativeDdSdk } from './specs/NativeDdSdk';
|
|
@@ -14,20 +15,6 @@ export type DdNativeLogsType = NativeDdLogs;
|
|
|
14
15
|
* The entry point to use Datadog's Trace feature.
|
|
15
16
|
*/
|
|
16
17
|
export type DdNativeTraceType = NativeDdTrace;
|
|
17
|
-
/**
|
|
18
|
-
* A configuration object to initialize Datadog's features.
|
|
19
|
-
*/
|
|
20
|
-
export declare class DdNativeSdkConfiguration {
|
|
21
|
-
readonly clientToken: string;
|
|
22
|
-
readonly env: string;
|
|
23
|
-
readonly applicationId: string;
|
|
24
|
-
readonly nativeCrashReportEnabled: boolean;
|
|
25
|
-
readonly sampleRate: number;
|
|
26
|
-
readonly site: string;
|
|
27
|
-
readonly trackingConsent: string;
|
|
28
|
-
readonly additionalConfiguration: object;
|
|
29
|
-
constructor(clientToken: string, env: string, applicationId: string, nativeCrashReportEnabled: boolean, sampleRate: number, site: string, trackingConsent: string, additionalConfiguration: object);
|
|
30
|
-
}
|
|
31
18
|
/**
|
|
32
19
|
* The entry point to initialize Datadog's features.
|
|
33
20
|
*/
|
|
@@ -36,7 +23,7 @@ export interface DdNativeSdkType extends NativeDdSdk {
|
|
|
36
23
|
* Initializes Datadog's features.
|
|
37
24
|
* @param configuration: The configuration to use.
|
|
38
25
|
*/
|
|
39
|
-
initialize(configuration:
|
|
26
|
+
initialize(configuration: DdSdkNativeConfiguration): Promise<void>;
|
|
40
27
|
}
|
|
41
28
|
type ActionType = 'TAP' | 'SCROLL' | 'SWIPE' | 'BACK' | 'CUSTOM';
|
|
42
29
|
type ResourceKind = 'image' | 'xhr' | 'beacon' | 'css' | 'document' | 'fetch' | 'font' | 'js' | 'media' | 'other' | 'native';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nativeModulesTypes.d.ts","sourceRoot":"","sources":["../../../../../core/src/nativeModulesTypes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,IAAI,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAEnE;;;GAGG;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,YAAY,CAAC;AAE5C;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,aAAa,CAAC;AAE9C;;GAEG;AACH,
|
|
1
|
+
{"version":3,"file":"nativeModulesTypes.d.ts","sourceRoot":"","sources":["../../../../../core/src/nativeModulesTypes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,2CAA2C,CAAC;AAC1F,OAAO,KAAK,EAAE,IAAI,IAAI,YAAY,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,KAAK,EAAE,IAAI,IAAI,WAAW,EAAE,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OAQG;IACH,YAAY,CACR,GAAG,EAAE,MAAM,EACX,UAAU,EAAE,MAAM,EAClB,IAAI,EAAE,YAAY,EAClB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,GACpB,OAAO,CAAC,IAAI,CAAC,CAAC;IAEjB;;;;;;;;OAQG;IACH,QAAQ,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,WAAW,EACnB,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,MAAM,EACf,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,GAAG,SAAS,GAChC,OAAO,CAAC,IAAI,CAAC,CAAC;CACpB"}
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import type { GestureResponderEvent } from 'react-native';
|
|
2
|
+
import type { Attributes } from '../sdk/AttributesSingleton/types';
|
|
3
|
+
import type { ErrorSource, FeatureOperationFailure } from '../types';
|
|
2
4
|
import type { TimeProvider } from '../utils/time-provider/TimeProvider';
|
|
3
5
|
import type { ActionEventMapper } from './eventMappers/actionEventMapper';
|
|
4
6
|
import type { ErrorEventMapper } from './eventMappers/errorEventMapper';
|
|
5
7
|
import type { ResourceEventMapper } from './eventMappers/resourceEventMapper';
|
|
6
8
|
import type { DatadogTracingContext } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingContext';
|
|
7
9
|
import { DatadogTracingIdentifier } from './instrumentation/resourceTracking/distributedTracing/DatadogTracingIdentifier';
|
|
8
|
-
import type {
|
|
10
|
+
import type { DdRumType, FirstPartyHost, PropagatorType, ResourceKind, RumActionType } from './types';
|
|
9
11
|
declare class DdRumWrapper implements DdRumType {
|
|
10
12
|
private nativeRum;
|
|
11
13
|
private lastActionData?;
|
|
@@ -22,12 +24,19 @@ declare class DdRumWrapper implements DdRumType {
|
|
|
22
24
|
context?: object,
|
|
23
25
|
timestampMs?: number
|
|
24
26
|
] | [context?: object, timestampMs?: number]) => Promise<void>;
|
|
27
|
+
startFeatureOperation(name: string, operationKey: string | null, attributes: object): Promise<void>;
|
|
28
|
+
succeedFeatureOperation(name: string, operationKey: string | null, attributes: object): Promise<void>;
|
|
29
|
+
failFeatureOperation(name: string, operationKey: string | null, reason: FeatureOperationFailure, attributes: object): Promise<void>;
|
|
25
30
|
setTimeProvider: (timeProvider: TimeProvider) => void;
|
|
26
31
|
addAction: (type: RumActionType, name: string, context?: object, timestampMs?: number, actionContext?: GestureResponderEvent) => Promise<void>;
|
|
27
32
|
startResource: (key: string, method: string, url: string, context?: object, timestampMs?: number) => Promise<void>;
|
|
28
33
|
stopResource: (key: string, statusCode: number, kind: ResourceKind, size?: number, context?: object, timestampMs?: number, resourceContext?: XMLHttpRequest) => Promise<void>;
|
|
29
34
|
addError: (message: string, source: ErrorSource, stacktrace: string, context?: object, timestampMs?: number, fingerprint?: string) => Promise<void>;
|
|
30
35
|
addTiming: (name: string) => Promise<void>;
|
|
36
|
+
addViewAttribute: (key: string, value: unknown) => Promise<void>;
|
|
37
|
+
removeViewAttribute: (key: string) => Promise<void>;
|
|
38
|
+
addViewAttributes: (attributes: Attributes) => Promise<void>;
|
|
39
|
+
removeViewAttributes: (keys: string[]) => Promise<void>;
|
|
31
40
|
addViewLoadingTime: (overwrite: boolean) => Promise<void>;
|
|
32
41
|
stopSession: () => Promise<void>;
|
|
33
42
|
addFeatureFlagEvaluation: (name: string, value: unknown) => Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DdRum.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/DdRum.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"DdRum.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/DdRum.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAQ1D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kCAAk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IAEF,kBAAkB,cAAe,OAAO,KAAG,QAAQ,IAAI,CAAC,CAUtD;IAEF,WAAW,QAAO,QAAQ,IAAI,CAAC,CAI7B;IAEF,wBAAwB,SACd,MAAM,SACL,OAAO,KACf,QAAQ,IAAI,CAAC,CAUd;IAEI,mBAAmB,IAAI,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;IAWxD,iBAAiB,QACR,MAAM,uBACU,MAAM,mBACV,cAAc,EAAE,KAClC,qBAAqB,CAStB;IAEF,+BAA+B,gBACd,cAAc,EAAE,uBACR,MAAM,KAC5B,qBAAqB,CAQtB;IAEF,eAAe,IAAI,wBAAwB;IAI3C,cAAc,IAAI,wBAAwB;IAI1C,wBAAwB,CAAC,gBAAgB,EAAE,gBAAgB;IAI3D,0BAA0B;IAI1B,2BAA2B,CAAC,mBAAmB,EAAE,mBAAmB;IAMpE,6BAA6B;IAI7B,yBAAyB,CAAC,iBAAiB,EAAE,iBAAiB;IAI9D,2BAA2B;IAI3B,OAAO,CAAC,oBAAoB,CAiC1B;IAEF,OAAO,CAAC,2BAA2B,CAkDjC;CACL;AAiCD,eAAO,MAAM,KAAK,cAA0D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AdditionalEventDataForMapper } from '../../sdk/EventMappers/EventMapper';
|
|
2
2
|
import { EventMapper } from '../../sdk/EventMappers/EventMapper';
|
|
3
|
-
import type { ErrorSource } from '
|
|
3
|
+
import type { ErrorSource } from '../../types';
|
|
4
4
|
type RawError = {
|
|
5
5
|
message: string;
|
|
6
6
|
source: ErrorSource;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/errorEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"errorEventMapper.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/eventMappers/errorEventMapper.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,oCAAoC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAE/C,KAAK,QAAQ,GAAG;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,KAAK,UAAU,GAAG,QAAQ,GAAG,4BAA4B,CAAC;AAE1D,KAAK,WAAW,GAAG;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,CAAC,KAAK,EAAE,UAAU,KAAK,UAAU,GAAG,IAAI,CAAC;AAExE,eAAO,MAAM,wBAAwB,gBACpB,gBAAgB,GAAG,SAAS,mDAOxC,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export declare const getCachedSessionId: () => string | undefined;
|
|
2
|
+
export declare const setCachedSessionId: (sessionId: string) => void;
|
|
3
|
+
export declare const clearCachedSessionId: () => void;
|
|
4
|
+
export declare const getCachedUserId: () => string | undefined;
|
|
5
|
+
export declare const setCachedUserId: (userId: string) => void;
|
|
6
|
+
export declare const clearCachedUserId: () => void;
|
|
7
|
+
export declare const getCachedAccountId: () => string | undefined;
|
|
8
|
+
export declare const setCachedAccountId: (accountId: string) => void;
|
|
9
|
+
export declare const clearCachedAccountId: () => void;
|
|
10
|
+
//# sourceMappingURL=helper.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"helper.d.ts","sourceRoot":"","sources":["../../../../../../core/src/rum/helper.ts"],"names":[],"mappings":"AA2BA,eAAO,MAAM,kBAAkB,0BAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAEnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC;AAEF,eAAO,MAAM,eAAe,0BAE3B,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,MAAM,SAE7C,CAAC;AAEF,eAAO,MAAM,iBAAiB,YAE7B,CAAC;AAEF,eAAO,MAAM,kBAAkB,0BAE9B,CAAC;AAEF,eAAO,MAAM,kBAAkB,cAAe,MAAM,SAEnD,CAAC;AAEF,eAAO,MAAM,oBAAoB,YAEhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DdRumErrorTracking.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/instrumentation/DdRumErrorTracking.tsx"],"names":[],"mappings":"AAsBA;;GAEG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAElC,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAS;IAG/C,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiE;IAGnG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiC;IAEnE;;OAEG;IACH,MAAM,CAAC,aAAa,IAAI,IAAI;IA8B5B,MAAM,CAAC,aAAa,UAAW,GAAG,YAAY,OAAO,KAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"DdRumErrorTracking.d.ts","sourceRoot":"","sources":["../../../../../../../core/src/rum/instrumentation/DdRumErrorTracking.tsx"],"names":[],"mappings":"AAsBA;;GAEG;AACH,qBAAa,kBAAkB;IAC3B,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAElC,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAS;IAG/C,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiE;IAGnG,OAAO,CAAC,MAAM,CAAC,mBAAmB,CAAiC;IAEnE;;OAEG;IACH,MAAM,CAAC,aAAa,IAAI,IAAI;IA8B5B,MAAM,CAAC,aAAa,UAAW,GAAG,YAAY,OAAO,KAAG,IAAI,CAsB1D;IAEF,MAAM,CAAC,cAAc,cAAe,OAAO,EAAE,KAAG,IAAI,CAyClD;IAEF,OAAO,CAAC,MAAM,CAAC,WAAW,CAOxB;CACL"}
|
|
@@ -16,16 +16,15 @@ type TargetObject = {
|
|
|
16
16
|
accessibilityLabel: string[];
|
|
17
17
|
[key: string]: any;
|
|
18
18
|
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
static config: BabelConfig;
|
|
19
|
+
declare class BabelInteractionTracking {
|
|
20
|
+
config: BabelConfig;
|
|
22
21
|
private timeProvider;
|
|
23
22
|
private telemetrySent;
|
|
24
23
|
private ddRum;
|
|
25
24
|
isInitialized: boolean;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
getInstance(): BabelInteractionTracking;
|
|
26
|
+
attachRumInstance(ddRum: typeof DdRum): void;
|
|
27
|
+
getTelemetryConfig(): {
|
|
29
28
|
babel_plugin: {
|
|
30
29
|
enabled: boolean;
|
|
31
30
|
track_interactions: boolean;
|
|
@@ -34,5 +33,6 @@ export declare class DdBabelInteractionTracking {
|
|
|
34
33
|
private getTargetName;
|
|
35
34
|
wrapRumAction(func: (...args: any[]) => any, action: RumActionType, targetObject: TargetObject): (...args: any[]) => any;
|
|
36
35
|
}
|
|
36
|
+
export declare const DdBabelInteractionTracking: BabelInteractionTracking;
|
|
37
37
|
export {};
|
|
38
38
|
//# sourceMappingURL=DdBabelInteractionTracking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DdBabelInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DdBabelInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdBabelInteractionTracking.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAC;AAEzC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAMjD,KAAK,WAAW,GAAG;IACf,iBAAiB,EAAE,OAAO,CAAC;IAC3B,qBAAqB,EAAE,OAAO,CAAC;CAClC,CAAC;AAEF,KAAK,YAAY,GAAG;IAChB,UAAU,EAAE,CAAC,MAAM,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC;IACzC,OAAO,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,aAAa,EAAE,OAAO,CAAA;KAAE,CAAC;IACzD,WAAW,EAAE,GAAG,EAAE,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,gBAAgB,EAAE,MAAM,EAAE,CAAC;IAC3B,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC7B,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACtB,CAAC;AAEF,cAAM,wBAAwB;IAC1B,MAAM,EAAE,WAAW,CAGjB;IAEF,OAAO,CAAC,YAAY,CAA2C;IAE/D,OAAO,CAAC,aAAa,CAAkB;IAEvC,OAAO,CAAC,KAAK,CAA6B;IAE1C,aAAa,EAAE,OAAO,CAAS;IAE/B,WAAW;IAIX,iBAAiB,CAAC,KAAK,EAAE,OAAO,KAAK;IAKrC,kBAAkB;;;;;;IASlB,OAAO,CAAC,aAAa;IAqDrB,aAAa,CACT,IAAI,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,EAC7B,MAAM,EAAE,aAAa,EACrB,YAAY,EAAE,YAAY,GAC3B,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG;CAsC7B;AAED,eAAO,MAAM,0BAA0B,0BAGtC,CAAC"}
|
|
@@ -2,6 +2,8 @@ import type { DdEventsInterceptorOptions } from './DdEventsInterceptor';
|
|
|
2
2
|
/**
|
|
3
3
|
* Provides RUM auto-instrumentation feature to track user interaction as RUM events.
|
|
4
4
|
* For now we are only covering the "onPress" events.
|
|
5
|
+
*
|
|
6
|
+
* @deprecated since 3.0.0 – Use `@datadog/mobile-react-native-babel-plugin` instead.
|
|
5
7
|
*/
|
|
6
8
|
export declare class DdRumUserInteractionTracking {
|
|
7
9
|
private static isTracking;
|
|
@@ -15,8 +17,13 @@ export declare class DdRumUserInteractionTracking {
|
|
|
15
17
|
* Starts tracking user interactions and sends a RUM Action event every time a new interaction was detected.
|
|
16
18
|
* Please note that we are only considering as valid - for - tracking only the user interactions that have
|
|
17
19
|
* a visible output (either an UI state change or a Resource request)
|
|
20
|
+
*
|
|
21
|
+
* @deprecated since version 3.0.0
|
|
18
22
|
*/
|
|
19
23
|
static startTracking(options: DdEventsInterceptorOptions): void;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated since version 3.0.0
|
|
26
|
+
*/
|
|
20
27
|
static stopTracking(): void;
|
|
21
28
|
}
|
|
22
29
|
//# sourceMappingURL=DdRumUserInteractionTracking.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DdRumUserInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOxE
|
|
1
|
+
{"version":3,"file":"DdRumUserInteractionTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/interactionTracking/DdRumUserInteractionTracking.tsx"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AAOxE;;;;;GAKG;AACH,qBAAa,4BAA4B;IACrC,OAAO,CAAC,MAAM,CAAC,UAAU,CAAS;IAClC,OAAO,CAAC,MAAM,CAAC,iBAAiB,CAAkD;IAClF,OAAO,CAAC,MAAM,CAAC,qBAAqB,CAAuB;IAC3D,OAAO,CAAC,MAAM,CAAC,YAAY,CAAc;IACzC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAQ;IAClC,OAAO,CAAC,MAAM,CAAC,cAAc,CAAQ;IAErC,OAAO,CAAC,MAAM,CAAC,0BAA0B,CAuBvC;IAEF;;;;;;OAMG;IACH,MAAM,CAAC,aAAa,CAAC,OAAO,EAAE,0BAA0B,GAAG,IAAI;IAsG/D;;OAEG;IACH,MAAM,CAAC,YAAY;CActB"}
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts
CHANGED
|
@@ -1,17 +1,23 @@
|
|
|
1
|
+
import BigInt from 'big-integer';
|
|
1
2
|
import type { FirstPartyHost } from '../../types';
|
|
2
3
|
/**
|
|
3
4
|
* Provides RUM auto-instrumentation feature to track resources (fetch, XHR, axios) as RUM events.
|
|
4
5
|
*/
|
|
5
|
-
|
|
6
|
-
private
|
|
7
|
-
private
|
|
6
|
+
declare class RumResourceTracking {
|
|
7
|
+
private _isTracking;
|
|
8
|
+
private _requestProxy;
|
|
9
|
+
private _maxSampledTraceId;
|
|
10
|
+
get isTracking(): boolean;
|
|
11
|
+
get maxSampledTraceId(): BigInt.BigInteger;
|
|
8
12
|
/**
|
|
9
13
|
* Starts tracking resources and sends a RUM Resource event every time a network request is detected.
|
|
10
14
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
startTracking({ resourceTraceSampleRate, firstPartyHosts }: {
|
|
16
|
+
resourceTraceSampleRate: number;
|
|
13
17
|
firstPartyHosts: FirstPartyHost[];
|
|
14
18
|
}): void;
|
|
15
|
-
|
|
19
|
+
stopTracking(): void;
|
|
16
20
|
}
|
|
21
|
+
export declare const DdRumResourceTracking: RumResourceTracking;
|
|
22
|
+
export {};
|
|
17
23
|
//# sourceMappingURL=DdRumResourceTracking.d.ts.map
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DdRumResourceTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DdRumResourceTracking.d.ts","sourceRoot":"","sources":["../../../../../../../../core/src/rum/instrumentation/resourceTracking/DdRumResourceTracking.tsx"],"names":[],"mappings":"AAMA,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUlD;;GAEG;AACH,cAAM,mBAAmB;IACrB,OAAO,CAAC,WAAW,CAAS;IAC5B,OAAO,CAAC,aAAa,CAA6B;IAClD,OAAO,CAAC,kBAAkB,CAAkC;IAE5D,IAAI,UAAU,IAAI,OAAO,CAExB;IAED,IAAI,iBAAiB,IAAI,MAAM,CAAC,UAAU,CAEzC;IAED;;OAEG;IACH,aAAa,CAAC,EACV,uBAAuB,EACvB,eAAe,EAClB,EAAE;QACC,uBAAuB,EAAE,MAAM,CAAC;QAChC,eAAe,EAAE,cAAc,EAAE,CAAC;KACrC,GAAG,IAAI;IA6BR,YAAY,IAAI,IAAI;CAUvB;AAED,eAAO,MAAM,qBAAqB,qBAGjC,CAAC"}
|
|
@@ -41,5 +41,6 @@ export declare class DatadogTracingContext {
|
|
|
41
41
|
* @param inject a callback that is called for each attribute that should be added to your RUM Resource context.
|
|
42
42
|
*/
|
|
43
43
|
injectRumResourceContext(inject: (attribute: string, value: string | number) => void): void;
|
|
44
|
+
private processHeaders;
|
|
44
45
|
}
|
|
45
46
|
//# sourceMappingURL=DatadogTracingContext.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatadogTracingContext.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatadogTracingContext.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/DatadogTracingContext.ts"],"names":[],"mappings":"AAQA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAG3D;;;GAGG;AACH,qBAAa,qBAAqB;IAC9B,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAsC;IACxE,OAAO,CAAC,QAAQ,CAAC,kBAAkB,CAAkC;IACrE,QAAQ,CAAC,OAAO,CAAC,EAAE,wBAAwB,CAAC;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,wBAAwB,CAAC;gBAGvC,cAAc,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,EACnD,eAAe,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,EAChD,OAAO,EAAE,OAAO,GAAG,SAAS,GAAG,IAAI,EACnC,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI;IAUrC;;;OAGG;IACH,oBAAoB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;IAM9C;;;OAGG;IACH,2BAA2B,IAAI;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE;IAIlE;;;OAGG;IACH,qBAAqB,IAAI,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IAIxD;;;OAGG;IACH,uBAAuB,CAAC,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,KAAK,IAAI;IAMvE;;;OAGG;IACH,wBAAwB,CACpB,MAAM,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,KAAK,IAAI;IAO/D,OAAO,CAAC,cAAc;CAmBzB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { BigInteger } from 'big-integer';
|
|
2
|
+
export declare const MAX_TRACE_ID: BigInteger;
|
|
2
3
|
/**
|
|
3
4
|
* Available formats for representing the {@link TracingIdentifier} as a string.
|
|
4
5
|
*/
|
|
@@ -92,6 +93,13 @@ export declare class TracingIdentifier {
|
|
|
92
93
|
* @returns the generated {@link SpanId}.
|
|
93
94
|
*/
|
|
94
95
|
static createSpanId(): SpanId;
|
|
96
|
+
/**
|
|
97
|
+
* Crate a Tracing Identifier from a given BigInt ID and type.
|
|
98
|
+
* @param id the BigInt ID.
|
|
99
|
+
* @param type the type of tracing identifier.
|
|
100
|
+
* @returns the generated {@link TraceId} or {@link SpanId}.
|
|
101
|
+
*/
|
|
102
|
+
static fromBigInt(id: BigInteger, type: TracingIdType): TraceId | SpanId;
|
|
95
103
|
/**
|
|
96
104
|
* Private constructor to initialize the {@link TracingIdentifier} based on the given
|
|
97
105
|
* {@link TracingIdType}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TracingIdentifier.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C;;GAEG;AACH,oBAAY,eAAe;IACvB;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,WAAW,IAAA;IAEX;;OAEG;IACH,GAAG,IAAA;IAEH;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,SAAS,IAAA;IAET;;OAEG;IACH,YAAY,IAAA;IAEZ;;OAEG;IACH,aAAa,IAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,iBAAiB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG;IACrC,MAAM,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,oBAAY,aAAa;IACrB;;OAEG;IACH,KAAK,IAAA;IACL;;OAEG;IACH,IAAI,IAAA;CACP;AAgBD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAE7B;;;OAGG;WACW,aAAa,IAAI,OAAO;IAItC;;;OAGG;WACW,YAAY,IAAI,MAAM;IAIpC;;;OAGG;IACH,OAAO;IAKP;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAgCpB;;;;OAIG;IACI,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM;CA6CnD"}
|
|
1
|
+
{"version":3,"file":"TracingIdentifier.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/TracingIdentifier.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAG9C,eAAO,MAAM,YAAY,YAA6C,CAAC;AAEvE;;GAEG;AACH,oBAAY,eAAe;IACvB;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,UAAU,IAAA;IAEV;;OAEG;IACH,WAAW,IAAA;IAEX;;OAEG;IACH,GAAG,IAAA;IAEH;;OAEG;IACH,MAAM,IAAA;IAEN;;OAEG;IACH,OAAO,IAAA;IAEP;;OAEG;IACH,SAAS,IAAA;IAET;;OAEG;IACH,YAAY,IAAA;IAEZ;;OAEG;IACH,aAAa,IAAA;CAChB;AAED;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,iBAAiB,GAAG;IACtC,MAAM,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,iBAAiB,GAAG;IACrC,MAAM,EAAE,QAAQ,CAAC;CACpB,CAAC;AAEF;;GAEG;AACH,oBAAY,aAAa;IACrB;;OAEG;IACH,KAAK,IAAA;IACL;;OAEG;IACH,IAAI,IAAA;CACP;AAgBD;;;;;;;GAOG;AACH,qBAAa,iBAAiB;IAC1B;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC;IAE7B;;;OAGG;WACW,aAAa,IAAI,OAAO;IAItC;;;OAGG;WACW,YAAY,IAAI,MAAM;IAIpC;;;;;OAKG;WACW,UAAU,CACpB,EAAE,EAAE,UAAU,EACd,IAAI,EAAE,aAAa,GACpB,OAAO,GAAG,MAAM;IAInB;;;OAGG;IACH,OAAO;IAKP;;;;OAIG;IACH,OAAO,CAAC,YAAY;IAgCpB;;;;OAIG;IACI,QAAQ,CAAC,MAAM,EAAE,eAAe,GAAG,MAAM;CA6CnD"}
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
import type { PropagatorType } from '../../../types';
|
|
2
2
|
import type { RegexMap } from '../requestProxy/interfaces/RequestProxy';
|
|
3
|
-
import type {
|
|
3
|
+
import type { DdRumResourceTracingAttributes } from './distributedTracingAttributes';
|
|
4
4
|
import type { Hostname } from './firstPartyHosts';
|
|
5
|
-
export
|
|
6
|
-
tracingStrategy: 'KEEP';
|
|
7
|
-
traceId: TraceId;
|
|
8
|
-
spanId: SpanId;
|
|
9
|
-
samplingPriorityHeader: '1' | '0';
|
|
10
|
-
rulePsr: number;
|
|
11
|
-
propagatorTypes: PropagatorType[];
|
|
12
|
-
rumSessionId?: string;
|
|
13
|
-
} | {
|
|
14
|
-
tracingStrategy: 'DISCARD';
|
|
15
|
-
traceId?: void;
|
|
16
|
-
spanId?: void;
|
|
17
|
-
samplingPriorityHeader: '0';
|
|
18
|
-
};
|
|
19
|
-
export declare const getTracingAttributes: ({ hostname, firstPartyHostsRegexMap, tracingSamplingRate, rumSessionId }: {
|
|
5
|
+
export declare const getTracingAttributes: ({ hostname, firstPartyHostsRegexMap, tracingSamplingRate, rumSessionId, userId, accountId }: {
|
|
20
6
|
hostname: Hostname | null;
|
|
21
7
|
firstPartyHostsRegexMap: RegexMap;
|
|
22
8
|
tracingSamplingRate: number;
|
|
23
9
|
rumSessionId?: string | undefined;
|
|
10
|
+
userId?: string | undefined;
|
|
11
|
+
accountId?: string | undefined;
|
|
24
12
|
}) => DdRumResourceTracingAttributes;
|
|
25
|
-
export declare const generateTracingAttributesWithSampling: (tracingSamplingRate: number, propagatorTypes: PropagatorType[], rumSessionId?: string) => DdRumResourceTracingAttributes;
|
|
13
|
+
export declare const generateTracingAttributesWithSampling: (tracingSamplingRate: number, propagatorTypes: PropagatorType[], rumSessionId?: string, userId?: string, accountId?: string) => DdRumResourceTracingAttributes;
|
|
26
14
|
//# sourceMappingURL=distributedTracing.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distributedTracing.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"distributedTracing.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracing.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,yCAAyC,CAAC;AAGxE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AAErF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAQlD,eAAO,MAAM,oBAAoB;cAQnB,QAAQ,GAAG,IAAI;;yBAEJ,MAAM;;;;MAI3B,8BAkBH,CAAC;AAEF,eAAO,MAAM,qCAAqC,wBACzB,MAAM,mBACV,cAAc,EAAE,iBAClB,MAAM,WACZ,MAAM,cACH,MAAM,KACnB,8BA0BF,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { PropagatorType } from '../../../types';
|
|
2
|
+
import type { SpanId, TraceId } from './TracingIdentifier';
|
|
3
|
+
export type DdRumResourceTracingAttributes = {
|
|
4
|
+
tracingStrategy: 'KEEP';
|
|
5
|
+
traceId: TraceId;
|
|
6
|
+
spanId: SpanId;
|
|
7
|
+
samplingPriorityHeader: '1' | '0';
|
|
8
|
+
rulePsr: number;
|
|
9
|
+
propagatorTypes: PropagatorType[];
|
|
10
|
+
rumSessionId?: string;
|
|
11
|
+
userId?: string;
|
|
12
|
+
accountId?: string;
|
|
13
|
+
baggageHeaders?: Set<string>;
|
|
14
|
+
} | {
|
|
15
|
+
tracingStrategy: 'DISCARD';
|
|
16
|
+
traceId?: void;
|
|
17
|
+
spanId?: void;
|
|
18
|
+
samplingPriorityHeader: '0';
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=distributedTracingAttributes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributedTracingAttributes.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingAttributes.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAErD,OAAO,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,MAAM,8BAA8B,GACpC;IACI,eAAe,EAAE,MAAM,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,sBAAsB,EAAE,GAAG,GAAG,GAAG,CAAC;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;CAChC,GACD;IACI,eAAe,EAAE,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,IAAI,CAAC;IACf,MAAM,CAAC,EAAE,IAAI,CAAC;IACd,sBAAsB,EAAE,GAAG,CAAC;CAC/B,CAAC"}
|
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
import { PropagatorType } from '../../../types';
|
|
2
2
|
import type { FirstPartyHost } from '../../../types';
|
|
3
3
|
import { DatadogTracingContext } from './DatadogTracingContext';
|
|
4
|
-
import type { DdRumResourceTracingAttributes } from './
|
|
5
|
-
export declare const SAMPLING_PRIORITY_HEADER_KEY = "x-datadog-sampling-priority";
|
|
6
|
-
/**
|
|
7
|
-
* Datadog headers
|
|
8
|
-
*/
|
|
9
|
-
export declare const ORIGIN_HEADER_KEY = "x-datadog-origin";
|
|
10
|
-
export declare const ORIGIN_RUM = "rum";
|
|
11
|
-
export declare const TRACE_ID_HEADER_KEY = "x-datadog-trace-id";
|
|
12
|
-
export declare const PARENT_ID_HEADER_KEY = "x-datadog-parent-id";
|
|
13
|
-
export declare const TAGS_HEADER_KEY = "x-datadog-tags";
|
|
14
|
-
export declare const DD_TRACE_ID_TAG = "_dd.p.tid";
|
|
15
|
-
export declare const DD_RUM_SESSION_ID_TAG = "session.id";
|
|
16
|
-
/**
|
|
17
|
-
* OTel headers
|
|
18
|
-
*/
|
|
19
|
-
export declare const TRACECONTEXT_HEADER_KEY = "traceparent";
|
|
20
|
-
export declare const TRACESTATE_HEADER_KEY = "tracestate";
|
|
21
|
-
export declare const BAGGAGE_HEADER_KEY = "baggage";
|
|
22
|
-
export declare const B3_HEADER_KEY = "b3";
|
|
23
|
-
export declare const B3_MULTI_TRACE_ID_HEADER_KEY = "X-B3-TraceId";
|
|
24
|
-
export declare const B3_MULTI_SPAN_ID_HEADER_KEY = "X-B3-SpanId";
|
|
25
|
-
export declare const B3_MULTI_SAMPLED_HEADER_KEY = "X-B3-Sampled";
|
|
4
|
+
import type { DdRumResourceTracingAttributes } from './distributedTracingAttributes';
|
|
26
5
|
export declare const getTracingHeadersFromAttributes: (tracingAttributes: DdRumResourceTracingAttributes) => {
|
|
27
6
|
header: string;
|
|
28
7
|
value: string;
|
|
29
8
|
}[];
|
|
30
|
-
export declare const getTracingContext: (url: string, tracingSamplingRate: number, firstPartyHosts: FirstPartyHost[], rumSessionId?: string) => DatadogTracingContext;
|
|
31
|
-
export declare const getTracingContextForPropagators: (propagators: PropagatorType[], tracingSamplingRate: number, rumSessionId?: string) => DatadogTracingContext;
|
|
9
|
+
export declare const getTracingContext: (url: string, tracingSamplingRate: number, firstPartyHosts: FirstPartyHost[], rumSessionId?: string, userId?: string, accountId?: string) => DatadogTracingContext;
|
|
10
|
+
export declare const getTracingContextForPropagators: (propagators: PropagatorType[], tracingSamplingRate: number, rumSessionId?: string, userId?: string, accountId?: string) => DatadogTracingContext;
|
|
32
11
|
//# sourceMappingURL=distributedTracingHeaders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"distributedTracingHeaders.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"distributedTracingHeaders.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingHeaders.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGrD,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGhE,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,gCAAgC,CAAC;AA0BrF,eAAO,MAAM,+BAA+B,sBACrB,8BAA8B,KAClD;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EA4HnC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QACrB,MAAM,uBACU,MAAM,mBACV,cAAc,EAAE,iBAClB,MAAM,WACZ,MAAM,cACH,MAAM,KACnB,qBAkBF,CAAC;AAEF,eAAO,MAAM,+BAA+B,gBAC3B,cAAc,EAAE,uBACR,MAAM,iBACZ,MAAM,WACZ,MAAM,cACH,MAAM,KACnB,qBAWF,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import BigInt from 'big-integer';
|
|
2
|
+
import type { TraceId } from './TracingIdentifier';
|
|
3
|
+
declare class _DistributedTracingSampling {
|
|
4
|
+
private _maxSampledTraceId;
|
|
5
|
+
get maxSampledTraceId(): BigInt.BigInteger;
|
|
6
|
+
setResourceTraceSampleRate(resourceTraceSampleRate: number): void;
|
|
7
|
+
shouldSampleTrace(tracingSamplingRate: number, sessionId: string | null | undefined, traceId: TraceId): boolean;
|
|
8
|
+
private static getMaxTraceId;
|
|
9
|
+
}
|
|
10
|
+
export declare const DistributedTracingSampling: _DistributedTracingSampling;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=distributedTracingSampling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"distributedTracingSampling.d.ts","sourceRoot":"","sources":["../../../../../../../../../core/src/rum/instrumentation/resourceTracking/distributedTracing/distributedTracingSampling.ts"],"names":[],"mappings":"AAIA,OAAO,MAAM,MAAM,aAAa,CAAC;AAKjC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAOnD,cAAM,2BAA2B;IAC7B,OAAO,CAAC,kBAAkB,CAAkC;IAE5D,IAAI,iBAAiB,IAAI,MAAM,CAAC,UAAU,CAEzC;IAED,0BAA0B,CAAC,uBAAuB,EAAE,MAAM;IAM1D,iBAAiB,CACb,mBAAmB,EAAE,MAAM,EAC3B,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EACpC,OAAO,EAAE,OAAO,GACjB,OAAO;IAsCV,OAAO,CAAC,MAAM,CAAC,aAAa;CAG/B;AAED,eAAO,MAAM,0BAA0B,6BAGtC,CAAC"}
|
package/lib/typescript/core/src/rum/instrumentation/resourceTracking/distributedTracing/headers.d.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Datadog headers
|
|
3
|
+
*/
|
|
4
|
+
export declare const SAMPLING_PRIORITY_HEADER_KEY = "x-datadog-sampling-priority";
|
|
5
|
+
export declare const ORIGIN_HEADER_KEY = "x-datadog-origin";
|
|
6
|
+
export declare const ORIGIN_RUM = "rum";
|
|
7
|
+
export declare const TRACE_ID_HEADER_KEY = "x-datadog-trace-id";
|
|
8
|
+
export declare const PARENT_ID_HEADER_KEY = "x-datadog-parent-id";
|
|
9
|
+
export declare const TAGS_HEADER_KEY = "x-datadog-tags";
|
|
10
|
+
export declare const DD_TRACE_ID_TAG = "_dd.p.tid";
|
|
11
|
+
export declare const DD_RUM_SESSION_ID_TAG = "session.id";
|
|
12
|
+
export declare const DD_RUM_USER_ID_TAG = "user.id";
|
|
13
|
+
export declare const DD_RUM_ACCOUNT_ID_TAG = "account.id";
|
|
14
|
+
/**
|
|
15
|
+
* OTel headers
|
|
16
|
+
*/
|
|
17
|
+
export declare const TRACECONTEXT_HEADER_KEY = "traceparent";
|
|
18
|
+
export declare const TRACESTATE_HEADER_KEY = "tracestate";
|
|
19
|
+
export declare const BAGGAGE_HEADER_KEY = "baggage";
|
|
20
|
+
export declare const B3_HEADER_KEY = "b3";
|
|
21
|
+
export declare const B3_MULTI_TRACE_ID_HEADER_KEY = "X-B3-TraceId";
|
|
22
|
+
export declare const B3_MULTI_SPAN_ID_HEADER_KEY = "X-B3-SpanId";
|
|
23
|
+
export declare const B3_MULTI_SAMPLED_HEADER_KEY = "X-B3-Sampled";
|
|
24
|
+
//# sourceMappingURL=headers.d.ts.map
|