End User Monitoring (EUM)

cancel
Showing results for 
Search instead for 
Did you mean: 

Custom errors Events not displaying in Browser Metrics or Pages And Ajax Requests

Custom errors Events not displaying in Browser Metrics or Pages And Ajax Requests

Hello ! 

 

I'm facing troubles to see the customs errors events I configured in the Pages And Ajax Requests or Browser Metrics sections. For now, we are on the Pro Trial for still 8 days.

 

We are sending an Ajax Event first and we want to send a custom error if the time calculated is too long.

 

Here is our code:

export function eventToMonitor(name, howLongItTook) {
  const appDynamicsEvent = new ADRUM.events.Ajax(); // eslint-disable-line

  appDynamicsEvent.url(name);

  // need to set a value > 1, otherwise appdynamics refuse the event
  appDynamicsEvent.markSendTime(1);
  appDynamicsEvent.markFirstByteTime(1);
  appDynamicsEvent.markRespAvailTime(1);

  appDynamicsEvent.markRespProcTime(parseInt(howLongItTook, 10));
  ADRUM.report(appDynamicsEvent); // eslint-disable-line

  if (howLongItTook > 3000) {
    const errorAppDynamics = new ADRUM.events.Error(); // eslint-disable-line
    errorAppDynamics.url('Long loading time')
    errorAppDynamics.msg('Long loading time');
    errorAppDynamics.line(21);
    errorAppDynamics.parent(appDynamicsEvent);
    ADRUM.report(errorAppDynamics); // eslint-disable-line
  }
}

I'm sure we enter the condition to throw an error event because I first tested that. I tried to configure the error in various ways. I have no error in console or network.

But I can't see the error in appDynamics End User Monitoring dashboards.

 

My questions are:

- Where are supposed to be shown the custom errors events we trigger ?

- Do I miss something to report custom errors to my dashboards ?

 

Thanks, 

Valentine

Custom errors Events not displaying in Browser Metrics or Pages And Ajax Requests