File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
performance-monitoring/navigation Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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 */
You can’t perform that action at this time.
0 commit comments