mirror of
https://github.com/komodorio/helm-dashboard.git
synced 2026-03-24 03:38:04 +00:00
26 lines
1.1 KiB
JavaScript
26 lines
1.1 KiB
JavaScript
(function(h,o,u,n,d) {
|
|
h=h[d]=h[d]||{q:[],onReady:function(c){h.q.push(c)}}
|
|
d=o.createElement(u);d.async=1;d.src=n
|
|
n=o.getElementsByTagName(u)[0];n.parentNode.insertBefore(d,n)
|
|
})(window,document,'script','https://www.datadoghq-browser-agent.com/datadog-rum-v4.js','DD_RUM')
|
|
DD_RUM.onReady(function() {
|
|
const xhr = new XMLHttpRequest();
|
|
xhr.onload = function() {
|
|
const version = JSON.parse(xhr.responseText).CurVer;
|
|
if (xhr.readyState === XMLHttpRequest.DONE && version!=="dev") {
|
|
DD_RUM.init({
|
|
clientToken: 'pub16d64cd1c00cf073ce85af914333bf72',
|
|
applicationId: 'e75439e5-e1b3-46ba-a9e9-a2e58579a2e2',
|
|
site: 'datadoghq.com',
|
|
service: 'helm-dashboard',
|
|
version: version,
|
|
trackInteractions: true,
|
|
trackResources: true,
|
|
trackLongTasks: true,
|
|
defaultPrivacyLevel: 'mask'
|
|
})
|
|
}
|
|
}
|
|
xhr.open('GET', '/status', true);
|
|
xhr.send(null);
|
|
}) |