On the other hand, the following code checks if some feature is not available:
function isPlatformSupported() {
if (typeof window === 'undefined') {
console.log("window not defined")
return
}
var xhr = new window.XMLHttpRequest()
if (!('withCredentials' in xhr)) {
console.log("CORS is not supported")
return
}
if (typeof Set !== 'function') {
console.log("Set is not a function")
return
}
if (typeof JSON.stringify !== 'function') {
console.log("JSON.stringify is not a function")
return
}
if (typeof window.performance.now !== 'function') {
console.log("window.performance is not a function")
return
}
console.log("all checks passed properly")
}
isPlatformSupported()
Yes, the agent work, events are sents, data and trace are displayed in ELK. Only about once in 10 or 20, when a particular call to my API takes (abnormally) one minute (with sucess), the events are not sent at all.
I can reproduce on Brave (last version) or Chrome (last version)
I confirm that, in the event that the events are not sent, the checks have passed and the apm is active.
--
On the other hand, managed transactions such as http-requests have a threshold of 60 seconds, if the transaction duration is greater than that, it will be discarded by the agent.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.