1(function () { 2 const el = document.currentScript; 3 Sentry.init({ 4 dsn: el.getAttribute("data-dsn"), 5 environment: el.getAttribute("data-environment"), 6 sampleRate: 0.05, 7 beforeSend(event) { 8 const burdaAdsCdnBase = el.getAttribute("data-cdn"); 9 10 const frames = event?.exception?.values?.[0]?.stacktrace?.frames ?? []; 11 const isFromBurdaAdsCdn = frames.some(frame => frame.filename?.startsWith(burdaAdsCdnBase)); 12 13 if (!isFromBurdaAdsCdn) return null; 14 15 event.tags = { 16 ...event.tags, 17 source: "burdaAds", 18 cdn: burdaAdsCdnBase 19 } 20 21 return event; 22 } 23 }) 24})();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.