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 {
251
251
}
252
252
}
253
253
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
+
254
267
/**
255
268
* Restarts idle timeout, if there is no running idle timeout it will start one.
256
269
*/
Original file line number Diff line number Diff line change @@ -330,6 +330,7 @@ export class BrowserTracing implements Integration {
330
330
331
331
const op = 'ui.action.click' ;
332
332
if ( inflightInteractionTransaction ) {
333
+ inflightInteractionTransaction . setFinishReason ( 'interactionInterrupted' ) ;
333
334
inflightInteractionTransaction . finish ( ) ;
334
335
inflightInteractionTransaction = undefined ;
335
336
}
You can’t perform that action at this time.
0 commit comments