Skip to content

Commit fb2aa6c

Browse files
committed
Review feedback
1 parent 1af145f commit fb2aa6c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

packages/rum-core/src/common/config-service.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ class Config {
8585
pageLoadTraceId: '',
8686
pageLoadSpanId: '',
8787
pageLoadSampled: false,
88+
pageLoadParentId: '',
8889
pageLoadTransactionName: '',
8990
propagateTracestate: false,
9091
transactionSampleRate: 1.0,

packages/rum-core/src/performance-monitoring/navigation/capture-navigation.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ function captureNavigation(transaction) {
9595
}
9696
)
9797

98+
99+
/**
100+
* Set the parent id of the transaction to the page load parent ID.
101+
* This means that the backend transcaction will be the parent of
102+
* the page load transaction, which is useful for e.g Synthetics.
103+
*/
104+
105+
if (tr.options.pageLoadParentId) {
106+
tr.parentId = tr.options.pageLoadParentId
107+
}
108+
98109
/**
99110
* Page load marks that are gathered from NavigationTiming API
100111
*/

0 commit comments

Comments
 (0)