Optional modules which extend the Tealeaf UI Capture SDK functionality.
go-acoustic / uicapturesdk-modules Goto Github PK
View Code? Open in Web Editor NEWOptional modules which extend the Acoustic Tealeaf UI Capture SDK functionality.
Optional modules which extend the Acoustic Tealeaf UI Capture SDK functionality.
The Ajaxlistener needs the ability to disable capture of the request or the response based on the payload size. E.g: If response payload is larger than 1MB, disable response capture for that call.
Also, individual headers, etc. need to be able to be filtered based on length.
My previous confirmation that 1.1.1 resolved the error was incorrect. We are still seeing the exact same issue.
Ajax listener records status code of 0 when status of 504 was observed in developer tools of the browser.
If the Dynatrace Javascript library is running in an application, the Tealeaf Ajax Listener isn't able to record any ajax calls. Tested multiple times. It doesn't prevent the Tealeaf POSTs from being received but is apparently preventing visibility from other Javascript.
Using 1.2.2,
Current Behavior:
When responseData is enabled, some calls result in a console error: "Uncaught DOMException: Failed to read the 'responseText' property from 'XMLHttpRequest': The value is only accessible if the object's 'responseType' is '' or 'text' (was 'json')."
We've observed that the application is prevented from rendering fully in this scenario.
Expected Behavior:
Even with an unexpected result received by ajaxListener, the application rendering should not be held up.
Casually searching the internet it seems that the "Response" property vs "Responsetext" should be used when malformed JSON is returned . Not suggesting this is a solution, but just passing along the little information I could garner.
Getting syntax error when testing the new ajax listener 1.2.0 with fetch support. In my test page I make a fetch request to 404 missing JSON file but 1.2.0 throws this error: AcousticExperience(TL)UIC-CLIENT-servicesTemplate.js:79 Uncaught TypeError: Cannot read property 'body' of undefined at window.fetch (https://127.0.0.1/tealeaf-libs/AcousticTealeaf_UICaptureSDK_5.6.0/AcousticExperience(TL)UIC-CLIENT-servicesTemplate.js:79:4638)
That is line "if (B.body) {" in the chrome-prettyprinted source of ajax listener:
function i() {
p = window.fetch;
window.fetch = function(C, B) {
var A = {}, D;
if (typeof C === "object") {
A.initData = C;
A.url = C.url;
A.initData.clone().text().then(function(E) {
if (E.length > 0) {
A.body = E
}
})
} else {
A.initData = B || {};
A.url = C;
if (B.body) {
A.body = B.body
}
}
If I comment out the 1.2.0 ajax listener, UIC works OK and I see my fetch 404 result:
Request URL: https://127.0.0.1/tealeaf-libs/AcousticTealeaf_UICaptureSDK_5.6.0/doesnotexist.json
Request Method: GET
Status Code: 404 Not Found
here's the fetch I am making in my test page:
fetch('https://127.0.0.1/tealeaf-libs/AcousticTealeaf_UICaptureSDK_5.6.0/doesnotexist.json')
.then((response) => {
return response.json();
})
.then((data) => {
console.log(data);
});
Here's my test session showing the error:
I remember with the old version (ajaxIntercept) it was necessary to check wether the browser was not IE or Safari (old).
Is this still mandatory or can it be set active to every user?
Not sure if this is just when a port number is included or if it's something specific to our environment but it seems the slash between the URL an URI portions of the original and request URLs is missing. When viewing headers in developer tools none are presented in this way. It is captured correctly for the "description" field
"originalURL": "api-gw.cigna.com:443my/curated-moments/v1/curated-moments",
"requestURL": "api-gw.cigna.com:443my/curated-moments/v1/curated-moments",
"description": "Full Ajax Monitor https://api-gw.cigna.com/my/curated-moments/v1/curated-moments?_ts=1565615981924",
Seeing an issue where ajax listener is interacting negatively with the application it's enabled on. It appears to cause the code to execute in some way. This is also causing performance impact. This is the 1.1.4 version. This problem did not seem to exist prior to 1.1.4.
Can this be done?
All examples have just one URL or one negative condition.
The old Ajax listener could blacklist URLs, can this one?
The ajaxlistener has a glaring gap for masking.
Need to be able to filter or replace header content or specific request/response payload content for security purposes.
We recently deployed this module to our production website and it started logging thousands of "Cannot set property 'end' of undefined" errors in our logs. Further investigation showed that the error was enough to block users from continuing on the site. I was able to trace the issue back to some really old browser versions. Predominantly users with Chrome 30x and Samsung browser 2.x.
We are using SDK 5.6 with all add-on modules disabled and useFetch: true.
Observation: At first glance, it may be an unexpected condition for earlier versions of Chrome and Samsung that do not support fetch.
No matter what I do I just get console errors for the 1.1.2 version:
TypeError: b.normalizeUrl is not a function
Ajax Listener doesn't seem to capture request query string parameters. Is there an undocumented way to add it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.