@datadog/browser-rum-core
Advanced tools
Comparing version 5.17.1 to 5.18.0
@@ -34,2 +34,3 @@ "use strict"; | ||
}); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'start-duration-vital' }); | ||
}); | ||
@@ -59,2 +60,3 @@ rumPublicApi.stopDurationVital = (0, browser_core_1.monitor)(function (name, options) { | ||
strategy.startView(sanitizedOptions); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'start-view' }); | ||
}); | ||
@@ -79,6 +81,12 @@ var rumPublicApi = (0, browser_core_1.makePublicApi)({ | ||
}), | ||
setGlobalContextProperty: (0, browser_core_1.monitor)(function (key, value) { return globalContextManager.setContextProperty(key, value); }), | ||
setGlobalContextProperty: (0, browser_core_1.monitor)(function (key, value) { | ||
globalContextManager.setContextProperty(key, value); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'set-global-context' }); | ||
}), | ||
removeGlobalContextProperty: (0, browser_core_1.monitor)(function (key) { return globalContextManager.removeContextProperty(key); }), | ||
getGlobalContext: (0, browser_core_1.monitor)(function () { return globalContextManager.getContext(); }), | ||
setGlobalContext: (0, browser_core_1.monitor)(function (context) { return globalContextManager.setContext(context); }), | ||
setGlobalContext: (0, browser_core_1.monitor)(function (context) { | ||
globalContextManager.setContext(context); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'set-global-context' }); | ||
}), | ||
clearGlobalContext: (0, browser_core_1.monitor)(function () { return globalContextManager.clearContext(); }), | ||
@@ -94,2 +102,3 @@ getInternalContext: (0, browser_core_1.monitor)(function (startTime) { return strategy.getInternalContext(startTime); }), | ||
}); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'add-action' }); | ||
}), | ||
@@ -105,2 +114,3 @@ addError: function (error, context) { | ||
}); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'add-error' }); | ||
}); | ||
@@ -127,2 +137,3 @@ }, | ||
} | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'set-user' }); | ||
}), | ||
@@ -134,2 +145,3 @@ getUser: (0, browser_core_1.monitor)(function () { return userContextManager.getContext(); }), | ||
userContextManager.setContextProperty(key, sanitizedProperty); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'set-user' }); | ||
}), | ||
@@ -155,2 +167,3 @@ removeUserProperty: (0, browser_core_1.monitor)(function (key) { return userContextManager.removeContextProperty(key); }), | ||
strategy.addFeatureFlagEvaluation((0, browser_core_1.sanitize)(key), (0, browser_core_1.sanitize)(value)); | ||
(0, browser_core_1.addTelemetryUsage)({ feature: 'add-feature-flag-evaluation' }); | ||
}), | ||
@@ -157,0 +170,0 @@ getSessionReplayLink: (0, browser_core_1.monitor)(function () { return recorderApi.getSessionReplayLink(); }), |
@@ -80,2 +80,3 @@ "use strict"; | ||
cleanupTasks.push(stopRumEventCollection); | ||
(0, browser_core_1.drainPreStartTelemetry)(); | ||
(0, browser_core_1.addTelemetryConfiguration)((0, configuration_1.serializeRumConfiguration)(initConfiguration)); | ||
@@ -82,0 +83,0 @@ (0, longTaskCollection_1.startLongTaskCollection)(lifeCycle, configuration, session); |
@@ -59,3 +59,3 @@ "use strict"; | ||
}, | ||
browser_sdk_version: (0, browser_core_1.canUseEventBridge)() ? "5.17.1" : undefined, | ||
browser_sdk_version: (0, browser_core_1.canUseEventBridge)() ? "5.18.0" : undefined, | ||
}, | ||
@@ -62,0 +62,0 @@ application: { |
@@ -31,2 +31,3 @@ import { addTelemetryUsage, timeStampToClocks, isExperimentalFeatureEnabled, ExperimentalFeature, assign, createContextManager, deepClone, makePublicApi, monitor, clocksNow, callMonitored, createHandlingStack, checkUser, sanitizeUser, sanitize, createIdentityEncoder, createCustomerDataTrackerManager, storeContextManager, displayAlreadyInitializedError, createTrackingConsentState, } from '@datadog/browser-core'; | ||
}); | ||
addTelemetryUsage({ feature: 'start-duration-vital' }); | ||
}); | ||
@@ -56,2 +57,3 @@ rumPublicApi.stopDurationVital = monitor(function (name, options) { | ||
strategy.startView(sanitizedOptions); | ||
addTelemetryUsage({ feature: 'start-view' }); | ||
}); | ||
@@ -76,6 +78,12 @@ var rumPublicApi = makePublicApi({ | ||
}), | ||
setGlobalContextProperty: monitor(function (key, value) { return globalContextManager.setContextProperty(key, value); }), | ||
setGlobalContextProperty: monitor(function (key, value) { | ||
globalContextManager.setContextProperty(key, value); | ||
addTelemetryUsage({ feature: 'set-global-context' }); | ||
}), | ||
removeGlobalContextProperty: monitor(function (key) { return globalContextManager.removeContextProperty(key); }), | ||
getGlobalContext: monitor(function () { return globalContextManager.getContext(); }), | ||
setGlobalContext: monitor(function (context) { return globalContextManager.setContext(context); }), | ||
setGlobalContext: monitor(function (context) { | ||
globalContextManager.setContext(context); | ||
addTelemetryUsage({ feature: 'set-global-context' }); | ||
}), | ||
clearGlobalContext: monitor(function () { return globalContextManager.clearContext(); }), | ||
@@ -91,2 +99,3 @@ getInternalContext: monitor(function (startTime) { return strategy.getInternalContext(startTime); }), | ||
}); | ||
addTelemetryUsage({ feature: 'add-action' }); | ||
}), | ||
@@ -102,2 +111,3 @@ addError: function (error, context) { | ||
}); | ||
addTelemetryUsage({ feature: 'add-error' }); | ||
}); | ||
@@ -124,2 +134,3 @@ }, | ||
} | ||
addTelemetryUsage({ feature: 'set-user' }); | ||
}), | ||
@@ -131,2 +142,3 @@ getUser: monitor(function () { return userContextManager.getContext(); }), | ||
userContextManager.setContextProperty(key, sanitizedProperty); | ||
addTelemetryUsage({ feature: 'set-user' }); | ||
}), | ||
@@ -152,2 +164,3 @@ removeUserProperty: monitor(function (key) { return userContextManager.removeContextProperty(key); }), | ||
strategy.addFeatureFlagEvaluation(sanitize(key), sanitize(value)); | ||
addTelemetryUsage({ feature: 'add-feature-flag-evaluation' }); | ||
}), | ||
@@ -154,0 +167,0 @@ getSessionReplayLink: monitor(function () { return recorderApi.getSessionReplayLink(); }), |
@@ -1,2 +0,2 @@ | ||
import { sendToExtension, createPageExitObservable, addTelemetryConfiguration, startTelemetry, canUseEventBridge, getEventBridge, addTelemetryDebug, } from '@datadog/browser-core'; | ||
import { sendToExtension, createPageExitObservable, addTelemetryConfiguration, startTelemetry, canUseEventBridge, getEventBridge, addTelemetryDebug, drainPreStartTelemetry, } from '@datadog/browser-core'; | ||
import { createDOMMutationObservable } from '../browser/domMutationObservable'; | ||
@@ -77,2 +77,3 @@ import { startPerformanceCollection } from '../browser/performanceCollection'; | ||
cleanupTasks.push(stopRumEventCollection); | ||
drainPreStartTelemetry(); | ||
addTelemetryConfiguration(serializeRumConfiguration(initConfiguration)); | ||
@@ -79,0 +80,0 @@ startLongTaskCollection(lifeCycle, configuration, session); |
@@ -56,3 +56,3 @@ import { combine, isEmptyObject, timeStampNow, currentDrift, display, createEventRateLimiter, canUseEventBridge, assign, round, isExperimentalFeatureEnabled, ExperimentalFeature, getConnectivity, } from '@datadog/browser-core'; | ||
}, | ||
browser_sdk_version: canUseEventBridge() ? "5.17.1" : undefined, | ||
browser_sdk_version: canUseEventBridge() ? "5.18.0" : undefined, | ||
}, | ||
@@ -59,0 +59,0 @@ application: { |
{ | ||
"name": "@datadog/browser-rum-core", | ||
"version": "5.17.1", | ||
"version": "5.18.0", | ||
"license": "Apache-2.0", | ||
@@ -15,3 +15,3 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"@datadog/browser-core": "5.17.1" | ||
"@datadog/browser-core": "5.18.0" | ||
}, | ||
@@ -32,3 +32,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "78b120d4775a8601f021adbba6df66ccfb07d8d2" | ||
"gitHead": "933517cf9fc2d33f561ac54a07a1f5e8bbab154e" | ||
} |
@@ -127,2 +127,3 @@ import type { | ||
}) | ||
addTelemetryUsage({ feature: 'start-duration-vital' }) | ||
} | ||
@@ -192,2 +193,3 @@ ) | ||
strategy.startView(sanitizedOptions) | ||
addTelemetryUsage({ feature: 'start-view' }) | ||
}) | ||
@@ -214,3 +216,6 @@ const rumPublicApi = makePublicApi({ | ||
setGlobalContextProperty: monitor((key, value) => globalContextManager.setContextProperty(key, value)), | ||
setGlobalContextProperty: monitor((key, value) => { | ||
globalContextManager.setContextProperty(key, value) | ||
addTelemetryUsage({ feature: 'set-global-context' }) | ||
}), | ||
@@ -221,3 +226,6 @@ removeGlobalContextProperty: monitor((key) => globalContextManager.removeContextProperty(key)), | ||
setGlobalContext: monitor((context) => globalContextManager.setContext(context)), | ||
setGlobalContext: monitor((context) => { | ||
globalContextManager.setContext(context) | ||
addTelemetryUsage({ feature: 'set-global-context' }) | ||
}), | ||
@@ -237,2 +245,3 @@ clearGlobalContext: monitor(() => globalContextManager.clearContext()), | ||
}) | ||
addTelemetryUsage({ feature: 'add-action' }) | ||
}), | ||
@@ -249,2 +258,3 @@ | ||
}) | ||
addTelemetryUsage({ feature: 'add-error' }) | ||
}) | ||
@@ -273,2 +283,3 @@ }, | ||
} | ||
addTelemetryUsage({ feature: 'set-user' }) | ||
}), | ||
@@ -281,2 +292,3 @@ | ||
userContextManager.setContextProperty(key, sanitizedProperty) | ||
addTelemetryUsage({ feature: 'set-user' }) | ||
}), | ||
@@ -307,2 +319,3 @@ | ||
strategy.addFeatureFlagEvaluation(sanitize(key)!, sanitize(value)) | ||
addTelemetryUsage({ feature: 'add-feature-flag-evaluation' }) | ||
}), | ||
@@ -309,0 +322,0 @@ |
@@ -20,2 +20,3 @@ import type { | ||
CustomerDataType, | ||
drainPreStartTelemetry, | ||
} from '@datadog/browser-core' | ||
@@ -147,2 +148,3 @@ import { createDOMMutationObservable } from '../browser/domMutationObservable' | ||
drainPreStartTelemetry() | ||
addTelemetryConfiguration(serializeRumConfiguration(initConfiguration)) | ||
@@ -149,0 +151,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1317943
24127
+ Added@datadog/browser-core@5.18.0(transitive)
- Removed@datadog/browser-core@5.17.1(transitive)
Updated@datadog/browser-core@5.18.0