cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Fetch instrumentation with Cordova and PouchDB

olivier_boudet
Newcomer

Hello,

We are trying to use Dynatrace to instrument an hybride application based on Ionic-angular 3.9.2. I managed to have some user actions detected and displayed in the dashboard.

Our problem is that we are using PouchDB wich use the fetch API to get data but calls are not displayed in the dynatrace dashboard (I have activated the Fetch detection in the web application settings).

When doing a step by step debugging in the javascript code, I can see that fetch calls are handled by dtAgent.js. But on the screenshot below, you can see that the dynatrace event is sent to server before all Fetch requests are done(_rev_diff and evenements are requests executed by PouchDB)

This is all I see in the waterfall view for this user action :

Is there a way to debug what is going on ? Do you have any idea how I can resolve that ?

Thanks

 

5 REPLIES 5

Bert_VanderHeyd
DynaMight Pro
DynaMight Pro

dtAgent.js or ruxitAgent.js? Is the js injection working well? Do you already see some user actions?


olivier_boudet
Newcomer

Hello,

It's dtAgent.js, and yes, I can see some user-action as shown in the screenshot in my first message.


Ok, I see now. There is even the /bf payload to dynatrace in the screenshot.


Bert_VanderHeyd
DynaMight Pro
DynaMight Pro

Maybe you could try to activate unlinked XHR detection in the advanced setup of your application. PouchDB might do things asynchronously.

Use the property cux=1


olivier_boudet
Newcomer

Thanks, it works.


Featured Posts