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
* Returns the registered target(s) associated with a given filename if found in the resource timing API during registration. Returns an empty array if not found.
registerHandler('xhr',function(){// the EE-drain system not only switches "this" but also passes a new EventContext with info. Should consider platform refactor to another system which passes a mutable context around separately and predictably to avoid problems like this.
34
-
classThis.storeXhr(...arguments,this)// this switches the context back to the class instance while passing the NR context as an argument -- see "ctx" in storeXhr
34
+
registerHandler('xhr',function(params,metrics,startTime,endTime,type,target){// the EE-drain system not only switches "this" but also passes a new EventContext with info. Should consider platform refactor to another system which passes a mutable context around separately and predictably to avoid problems like this.
35
+
classThis.storeXhr(params,metrics,startTime,endTime,type,target,this)// this switches the context back to the class instance while passing the NR context as an argument -- see "ctx" in storeXhr
35
36
},this.featureName,this.ee)
36
37
37
38
this.ee.on('long-task',(task,originator)=>{
@@ -44,7 +45,7 @@ export class Aggregate extends AggregateBase {
0 commit comments