@datadog/browser-rum-core
Advanced tools
Comparing version 5.30.1 to 5.31.1
@@ -166,3 +166,3 @@ import type { Context, User, DeflateWorker, DeflateEncoderStreamId, DeflateEncoder, TrackingConsent, PublicApi } from '@datadog/browser-core'; | ||
* Start a view manually. | ||
* Enable to manual start a view, use `trackViewManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing. | ||
* Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing. | ||
* | ||
@@ -169,0 +169,0 @@ * @param options.name name of the view |
@@ -42,2 +42,3 @@ import type { Duration, RelativeTime } from '@datadog/browser-core'; | ||
fetchStart: RelativeTime; | ||
workerStart: RelativeTime; | ||
domainLookupStart: RelativeTime; | ||
@@ -44,0 +45,0 @@ domainLookupEnd: RelativeTime; |
@@ -24,2 +24,3 @@ "use strict"; | ||
transferSize: 0, | ||
workerStart: 0, | ||
toJSON: function () { return (0, browser_core_1.assign)({}, entry, { toJSON: undefined }); }, | ||
@@ -26,0 +27,0 @@ }, timings); |
@@ -65,3 +65,3 @@ "use strict"; | ||
}, | ||
browser_sdk_version: (0, browser_core_1.canUseEventBridge)() ? "5.30.1" : undefined, | ||
browser_sdk_version: (0, browser_core_1.canUseEventBridge)() ? "5.31.1" : undefined, | ||
}, | ||
@@ -68,0 +68,0 @@ application: { |
@@ -6,2 +6,3 @@ import type { ServerDuration } from '@datadog/browser-core'; | ||
export interface ResourceEntryDetails { | ||
worker?: ResourceEntryDetailsElement; | ||
redirect?: ResourceEntryDetailsElement; | ||
@@ -8,0 +9,0 @@ dns?: ResourceEntryDetailsElement; |
@@ -80,3 +80,3 @@ "use strict"; | ||
} | ||
var startTime = entry.startTime, fetchStart = entry.fetchStart, redirectStart = entry.redirectStart, redirectEnd = entry.redirectEnd, domainLookupStart = entry.domainLookupStart, domainLookupEnd = entry.domainLookupEnd, connectStart = entry.connectStart, secureConnectionStart = entry.secureConnectionStart, connectEnd = entry.connectEnd, requestStart = entry.requestStart, responseStart = entry.responseStart, responseEnd = entry.responseEnd; | ||
var startTime = entry.startTime, fetchStart = entry.fetchStart, workerStart = entry.workerStart, redirectStart = entry.redirectStart, redirectEnd = entry.redirectEnd, domainLookupStart = entry.domainLookupStart, domainLookupEnd = entry.domainLookupEnd, connectStart = entry.connectStart, secureConnectionStart = entry.secureConnectionStart, connectEnd = entry.connectEnd, requestStart = entry.requestStart, responseStart = entry.responseStart, responseEnd = entry.responseEnd; | ||
var details = { | ||
@@ -86,2 +86,6 @@ download: formatTiming(startTime, responseStart, responseEnd), | ||
}; | ||
// Make sure a worker processing time is recorded | ||
if (0 < workerStart && workerStart < fetchStart) { | ||
details.worker = formatTiming(startTime, workerStart, fetchStart); | ||
} | ||
// Make sure a connection occurred | ||
@@ -88,0 +92,0 @@ if (fetchStart < connectEnd) { |
@@ -34,2 +34,3 @@ import type { Context, Duration, ErrorSource, ErrorHandling, ResourceType, ServerDuration, TimeStamp, RawErrorCause, DefaultPrivacyLevel, Connectivity, Csp } from '@datadog/browser-core'; | ||
ssl?: ResourceEntryDetailsElement; | ||
worker?: ResourceEntryDetailsElement; | ||
first_byte?: ResourceEntryDetailsElement; | ||
@@ -36,0 +37,0 @@ download?: ResourceEntryDetailsElement; |
@@ -567,2 +567,16 @@ /** | ||
/** | ||
* Worker phase properties | ||
*/ | ||
readonly worker?: { | ||
/** | ||
* Duration in nanoseconds of the resource worker phase | ||
*/ | ||
readonly duration: number; | ||
/** | ||
* Duration in nanoseconds between start of the request and start of the worker phase | ||
*/ | ||
readonly start: number; | ||
[k: string]: unknown; | ||
}; | ||
/** | ||
* Redirect phase properties | ||
@@ -738,2 +752,10 @@ */ | ||
/** | ||
* Duration in ns from the moment the view was started until all the initial network requests settled | ||
*/ | ||
readonly network_settled_time?: number; | ||
/** | ||
* Duration in ns to from the last interaction on previous view to the moment the current view was displayed | ||
*/ | ||
readonly interaction_to_next_view_time?: number; | ||
/** | ||
* Type of the loading of the view | ||
@@ -740,0 +762,0 @@ */ |
@@ -166,3 +166,3 @@ import type { Context, User, DeflateWorker, DeflateEncoderStreamId, DeflateEncoder, TrackingConsent, PublicApi } from '@datadog/browser-core'; | ||
* Start a view manually. | ||
* Enable to manual start a view, use `trackViewManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing. | ||
* Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing. | ||
* | ||
@@ -169,0 +169,0 @@ * @param options.name name of the view |
@@ -42,2 +42,3 @@ import type { Duration, RelativeTime } from '@datadog/browser-core'; | ||
fetchStart: RelativeTime; | ||
workerStart: RelativeTime; | ||
domainLookupStart: RelativeTime; | ||
@@ -44,0 +45,0 @@ domainLookupEnd: RelativeTime; |
@@ -20,2 +20,3 @@ import { assign, getRelativeTime, isNumber } from '@datadog/browser-core'; | ||
transferSize: 0, | ||
workerStart: 0, | ||
toJSON: function () { return assign({}, entry, { toJSON: undefined }); }, | ||
@@ -22,0 +23,0 @@ }, timings); |
@@ -62,3 +62,3 @@ import { combine, isEmptyObject, timeStampNow, currentDrift, display, createEventRateLimiter, canUseEventBridge, assign, round, isExperimentalFeatureEnabled, ExperimentalFeature, getConnectivity, } from '@datadog/browser-core'; | ||
}, | ||
browser_sdk_version: canUseEventBridge() ? "5.30.1" : undefined, | ||
browser_sdk_version: canUseEventBridge() ? "5.31.1" : undefined, | ||
}, | ||
@@ -65,0 +65,0 @@ application: { |
@@ -6,2 +6,3 @@ import type { ServerDuration } from '@datadog/browser-core'; | ||
export interface ResourceEntryDetails { | ||
worker?: ResourceEntryDetailsElement; | ||
redirect?: ResourceEntryDetailsElement; | ||
@@ -8,0 +9,0 @@ dns?: ResourceEntryDetailsElement; |
@@ -66,3 +66,3 @@ import { addTelemetryDebug, elapsed, getPathName, includes, isValidUrl, toServerDuration, isIntakeUrl, } from '@datadog/browser-core'; | ||
} | ||
var startTime = entry.startTime, fetchStart = entry.fetchStart, redirectStart = entry.redirectStart, redirectEnd = entry.redirectEnd, domainLookupStart = entry.domainLookupStart, domainLookupEnd = entry.domainLookupEnd, connectStart = entry.connectStart, secureConnectionStart = entry.secureConnectionStart, connectEnd = entry.connectEnd, requestStart = entry.requestStart, responseStart = entry.responseStart, responseEnd = entry.responseEnd; | ||
var startTime = entry.startTime, fetchStart = entry.fetchStart, workerStart = entry.workerStart, redirectStart = entry.redirectStart, redirectEnd = entry.redirectEnd, domainLookupStart = entry.domainLookupStart, domainLookupEnd = entry.domainLookupEnd, connectStart = entry.connectStart, secureConnectionStart = entry.secureConnectionStart, connectEnd = entry.connectEnd, requestStart = entry.requestStart, responseStart = entry.responseStart, responseEnd = entry.responseEnd; | ||
var details = { | ||
@@ -72,2 +72,6 @@ download: formatTiming(startTime, responseStart, responseEnd), | ||
}; | ||
// Make sure a worker processing time is recorded | ||
if (0 < workerStart && workerStart < fetchStart) { | ||
details.worker = formatTiming(startTime, workerStart, fetchStart); | ||
} | ||
// Make sure a connection occurred | ||
@@ -74,0 +78,0 @@ if (fetchStart < connectEnd) { |
@@ -34,2 +34,3 @@ import type { Context, Duration, ErrorSource, ErrorHandling, ResourceType, ServerDuration, TimeStamp, RawErrorCause, DefaultPrivacyLevel, Connectivity, Csp } from '@datadog/browser-core'; | ||
ssl?: ResourceEntryDetailsElement; | ||
worker?: ResourceEntryDetailsElement; | ||
first_byte?: ResourceEntryDetailsElement; | ||
@@ -36,0 +37,0 @@ download?: ResourceEntryDetailsElement; |
@@ -567,2 +567,16 @@ /** | ||
/** | ||
* Worker phase properties | ||
*/ | ||
readonly worker?: { | ||
/** | ||
* Duration in nanoseconds of the resource worker phase | ||
*/ | ||
readonly duration: number; | ||
/** | ||
* Duration in nanoseconds between start of the request and start of the worker phase | ||
*/ | ||
readonly start: number; | ||
[k: string]: unknown; | ||
}; | ||
/** | ||
* Redirect phase properties | ||
@@ -738,2 +752,10 @@ */ | ||
/** | ||
* Duration in ns from the moment the view was started until all the initial network requests settled | ||
*/ | ||
readonly network_settled_time?: number; | ||
/** | ||
* Duration in ns to from the last interaction on previous view to the moment the current view was displayed | ||
*/ | ||
readonly interaction_to_next_view_time?: number; | ||
/** | ||
* Type of the loading of the view | ||
@@ -740,0 +762,0 @@ */ |
{ | ||
"name": "@datadog/browser-rum-core", | ||
"version": "5.30.1", | ||
"version": "5.31.1", | ||
"license": "Apache-2.0", | ||
@@ -15,3 +15,3 @@ "main": "cjs/index.js", | ||
"dependencies": { | ||
"@datadog/browser-core": "5.30.1" | ||
"@datadog/browser-core": "5.31.1" | ||
}, | ||
@@ -32,3 +32,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "639b5a7c3830242460e43b97497f2aa41cc9246f" | ||
"gitHead": "aa852195227ff9e7a8e7e4763803b65c43d5a73f" | ||
} |
@@ -222,3 +222,3 @@ import type { | ||
* Start a view manually. | ||
* Enable to manual start a view, use `trackViewManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing. | ||
* Enable to manual start a view, use `trackViewsManually: true` init parameter and call `startView()` to create RUM views and be aligned with how you’ve defined them in your SPA application routing. | ||
* | ||
@@ -225,0 +225,0 @@ * @param options.name name of the view |
@@ -49,2 +49,3 @@ import type { Duration, RelativeTime, TimeoutId } from '@datadog/browser-core' | ||
fetchStart: RelativeTime | ||
workerStart: RelativeTime | ||
domainLookupStart: RelativeTime | ||
@@ -51,0 +52,0 @@ domainLookupEnd: RelativeTime |
@@ -30,2 +30,3 @@ import type { RelativeTime, TimeStamp } from '@datadog/browser-core' | ||
transferSize: 0, | ||
workerStart: 0 as RelativeTime, | ||
toJSON: () => assign({}, entry, { toJSON: undefined }), | ||
@@ -32,0 +33,0 @@ }, |
@@ -18,2 +18,3 @@ import type { RelativeTime, ServerDuration } from '@datadog/browser-core' | ||
export interface ResourceEntryDetails { | ||
worker?: ResourceEntryDetailsElement | ||
redirect?: ResourceEntryDetailsElement | ||
@@ -95,2 +96,3 @@ dns?: ResourceEntryDetailsElement | ||
fetchStart, | ||
workerStart, | ||
redirectStart, | ||
@@ -113,2 +115,7 @@ redirectEnd, | ||
// Make sure a worker processing time is recorded | ||
if (0 < workerStart && workerStart < fetchStart) { | ||
details.worker = formatTiming(startTime, workerStart, fetchStart) | ||
} | ||
// Make sure a connection occurred | ||
@@ -115,0 +122,0 @@ if (fetchStart < connectEnd) { |
@@ -49,2 +49,3 @@ import type { | ||
ssl?: ResourceEntryDetailsElement | ||
worker?: ResourceEntryDetailsElement | ||
first_byte?: ResourceEntryDetailsElement | ||
@@ -51,0 +52,0 @@ download?: ResourceEntryDetailsElement |
@@ -622,2 +622,16 @@ /* eslint-disable */ | ||
/** | ||
* Worker phase properties | ||
*/ | ||
readonly worker?: { | ||
/** | ||
* Duration in nanoseconds of the resource worker phase | ||
*/ | ||
readonly duration: number | ||
/** | ||
* Duration in nanoseconds between start of the request and start of the worker phase | ||
*/ | ||
readonly start: number | ||
[k: string]: unknown | ||
} | ||
/** | ||
* Redirect phase properties | ||
@@ -808,2 +822,10 @@ */ | ||
/** | ||
* Duration in ns from the moment the view was started until all the initial network requests settled | ||
*/ | ||
readonly network_settled_time?: number | ||
/** | ||
* Duration in ns to from the last interaction on previous view to the moment the current view was displayed | ||
*/ | ||
readonly interaction_to_next_view_time?: number | ||
/** | ||
* Type of the loading of the view | ||
@@ -810,0 +832,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
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
1545558
28309
+ Added@datadog/browser-core@5.31.1(transitive)
- Removed@datadog/browser-core@5.30.1(transitive)
Updated@datadog/browser-core@5.31.1