@elastic/apm-rum-core
Advanced tools
Comparing version 5.21.1 to 5.22.0
@@ -215,2 +215,3 @@ import { Promise } from './polyfills'; | ||
id: transaction.id, | ||
pid: transaction.parent_id, | ||
tid: transaction.trace_id, | ||
@@ -217,0 +218,0 @@ n: transaction.name, |
@@ -60,2 +60,3 @@ function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } | ||
pageLoadSampled: false, | ||
pageLoadParentId: '', | ||
pageLoadTransactionName: '', | ||
@@ -62,0 +63,0 @@ propagateTracestate: false, |
@@ -42,2 +42,7 @@ import { PERF, isPerfTimelineSupported, isRedirectInfoAvailable } from '../../common/utils'; | ||
}); | ||
if (transaction.options.pageLoadParentId) { | ||
transaction.parentId = transaction.options.pageLoadParentId; | ||
} | ||
transaction.addMarks(getPageLoadMarks(timings)); | ||
@@ -44,0 +49,0 @@ } |
@@ -320,2 +320,3 @@ import { checkSameOrigin, isDtHeaderValid, parseDtHeaderValue, getDtHeaderValue, getTSHeaderValue, stripQueryStringFromUrl, setRequestHeader } from '../common/utils'; | ||
id: transaction.id, | ||
parent_id: transaction.parentId, | ||
trace_id: transaction.traceId, | ||
@@ -322,0 +323,0 @@ session: transaction.session, |
@@ -69,3 +69,4 @@ import { Promise } from '../common/polyfills'; | ||
pageLoadSpanId: config.pageLoadSpanId, | ||
pageLoadTransactionName: config.pageLoadTransactionName | ||
pageLoadTransactionName: config.pageLoadTransactionName, | ||
pageLoadParentId: config.pageLoadParentId | ||
}, perfOptions); | ||
@@ -72,0 +73,0 @@ } |
@@ -229,2 +229,3 @@ "use strict"; | ||
id: transaction.id, | ||
pid: transaction.parent_id, | ||
tid: transaction.trace_id, | ||
@@ -231,0 +232,0 @@ n: transaction.name, |
@@ -69,2 +69,3 @@ "use strict"; | ||
pageLoadSampled: false, | ||
pageLoadParentId: '', | ||
pageLoadTransactionName: '', | ||
@@ -71,0 +72,0 @@ propagateTracestate: false, |
@@ -61,2 +61,7 @@ "use strict"; | ||
}); | ||
if (transaction.options.pageLoadParentId) { | ||
transaction.parentId = transaction.options.pageLoadParentId; | ||
} | ||
transaction.addMarks((0, _marks.getPageLoadMarks)(timings)); | ||
@@ -63,0 +68,0 @@ } |
@@ -336,2 +336,3 @@ "use strict"; | ||
id: transaction.id, | ||
parent_id: transaction.parentId, | ||
trace_id: transaction.traceId, | ||
@@ -338,0 +339,0 @@ session: transaction.session, |
@@ -84,3 +84,4 @@ "use strict"; | ||
pageLoadSpanId: config.pageLoadSpanId, | ||
pageLoadTransactionName: config.pageLoadTransactionName | ||
pageLoadTransactionName: config.pageLoadTransactionName, | ||
pageLoadParentId: config.pageLoadParentId | ||
}, perfOptions); | ||
@@ -87,0 +88,0 @@ } |
{ | ||
"name": "@elastic/apm-rum-core", | ||
"version": "5.21.1", | ||
"version": "5.22.0", | ||
"description": "Elastic apm core", | ||
@@ -46,3 +46,3 @@ "license": "MIT", | ||
], | ||
"gitHead": "15c071ca7a4fd6dc3685888736aec1b9ffd3f1c1" | ||
"gitHead": "274fca34cb94f1d254913727345bdb1176f9dae5" | ||
} |
@@ -235,2 +235,3 @@ /** | ||
id: transaction.id, | ||
pid: transaction.parent_id, | ||
tid: transaction.trace_id, | ||
@@ -237,0 +238,0 @@ n: transaction.name, |
@@ -88,2 +88,3 @@ /** | ||
pageLoadSampled: false, | ||
pageLoadParentId: '', | ||
pageLoadTransactionName: '', | ||
@@ -90,0 +91,0 @@ propagateTracestate: false, |
@@ -98,3 +98,14 @@ /** | ||
/** | ||
* Set the parent id of the transaction to the page load parent ID. | ||
* This means that the backend transaction will be the parent of | ||
* the page load transaction, which is useful for e.g Synthetics. | ||
*/ | ||
if (transaction.options.pageLoadParentId) { | ||
transaction.parentId = transaction.options.pageLoadParentId | ||
} | ||
/** | ||
* Page load marks that are gathered from NavigationTiming API | ||
@@ -101,0 +112,0 @@ */ |
@@ -401,2 +401,3 @@ /** | ||
id: transaction.id, | ||
parent_id: transaction.parentId, | ||
trace_id: transaction.traceId, | ||
@@ -403,0 +404,0 @@ session: transaction.session, |
@@ -112,3 +112,4 @@ /** | ||
pageLoadSpanId: config.pageLoadSpanId, | ||
pageLoadTransactionName: config.pageLoadTransactionName | ||
pageLoadTransactionName: config.pageLoadTransactionName, | ||
pageLoadParentId: config.pageLoadParentId | ||
}, | ||
@@ -287,2 +288,3 @@ perfOptions | ||
} | ||
/** | ||
@@ -289,0 +291,0 @@ * Capture the TBT as span after observing for all long task entries |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
539367
15999
1