File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed
tracing-internal/src/browser Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -251,6 +251,19 @@ export class IdleTransaction extends Transaction {
251251 }
252252 }
253253
254+ /**
255+ * Temporary method used to externally set the transaction's `finishReason`
256+ *
257+ * ** WARNING**
258+ * This is for the purpose of experimentation only and will be removed in the near future, do not use!
259+ *
260+ * @internal
261+ *
262+ */
263+ public setFinishReason ( reason : string ) : void {
264+ this . _finishReason = reason ;
265+ }
266+
254267 /**
255268 * Restarts idle timeout, if there is no running idle timeout it will start one.
256269 */
Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ export class BrowserTracing implements Integration {
330330
331331 const op = 'ui.action.click' ;
332332 if ( inflightInteractionTransaction ) {
333+ inflightInteractionTransaction . setFinishReason ( 'interactionInterrupted' ) ;
333334 inflightInteractionTransaction . finish ( ) ;
334335 inflightInteractionTransaction = undefined ;
335336 }
You can’t perform that action at this time.
0 commit comments