import * as Tools from "../tool"; export function onHandleHashChange(event) { //part this.pageChangeTaskPart(event) //transaction Tools.asynGenerator( //send transaction this.pageRunTransactionEnd, //create new transaction this.pageRunTransactionStart, ); }; export function onHandleHttpRequest(type, info) { let tags = {}, key = ""; if(!this.currTransaction){ return false; } //transaction switch (type) { case "request": key = `${info.url}:request`; this.currTransaction.startSpan(key, "xhrRequest"); return; case "response": this.networkTaskPart(info) key = `${info.url}:response`; this.currTransaction.startSpan(key, "xhrResponse"); return; default: return; } }; export function onHandleDomActive(type, info){ const { title, xPath, value } = info; let key = `${title}:${type}`; //part this.elementActionTaskPart(type,info) //transaction if(this.currTransaction){ this.currTransaction.startSpan(key, "elementAction"); } };