You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/APM.js
+13-3Lines changed: 13 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -77,12 +77,22 @@ export default {
77
77
78
78
/**
79
79
* Starts a custom trace
80
+
* Returns a promise, the promise delivers the trace reference if APM is enabled, otherwise it gets rejected
80
81
* @param {string} name
81
82
*/
82
83
startExecutionTrace(name){
83
-
constid=Date.now()+'';
84
-
IBGAPM.startExecutionTrace(name,id);
85
-
returnnewTrace(id,name);
84
+
constTRACE_NOT_STARTED_APM_NOT_ENABLED=`Execution trace "${name}" wasn't created. Please make sure to enable APM first by following the instructions at this link: https://docs.instabug.com/reference#enable-or-disable-apm`;
0 commit comments