admin管理员组

文章数量:1399329

Do you have any experience about instrumenting OpenTelemetry tracing code for cordova.plugin.http.sendRequest ? I imagine it should look like as below:

cordova.plugin.http.sendRequest = function(url, params, method, headers, success, error) {

// Call the original sendRequest method originalSendRequest.call(this, url, params, method, headers, success, error); };

My idea is to keep existing codes intact, just add new code to replace the original cordova.plugin.http.sendRequest method.

If you do have experience, could you provide some guidance about how to implement it ?

Thanks in advance...

I am not a cordova expert so I will try something provided by experts here.

本文标签: open telemetrycordovapluginhttpsendRequest OpenTelemetry instrumentationStack Overflow