-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
54 lines (49 loc) · 1.49 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
const Sentry = require("@sentry/node");
Sentry.init({
dsn: 'https://b070dad593840b171d307dbb38de729f@o4505365730885632.ingest.sentry.io/4506305809088512',
// Performance Monitoring
tracesSampleRate: 1.0,
// Set sampling rate for profiling - this is relative to tracesSampleRate
profilesSampleRate: 1.0,
});
const wowee = () => {
// Lorem ipsum dolor sit amet, consectetur
// adipiscing elit. Vestibulum commodo nunc
// vitae lacus molestie fringilla. Aenean
// luctus magna nec tempus bibendum. Etiam
// molestie, neque at efficitur placerat, nibh
// orci tincidunt mi, fermentum blandit ligula
// mi luctus tellus. Nullam venenatis diam
// ultricies, euismod ex sed, suscipit turpis.
// Vivamus porta augue magna, at consequat leo
// molestie at. In non sollicitudin massa, in
// tincidunt ipsum. Aliquam erat volutpat.
// Mauris tortor sem, lacinia nec viverra eget,
// sollicitudin sit amet diam. Pellentesque a
// nulla a ante blandit sagittis.
console.log("in here");
const i = 0
const j = 1
return hello();
}
function wave() {
const d = 5;
const c = 3.14 * d;
console.log(d)
console.log(c)
console.log("hello server")
// this raises an error
throw new Error("error");
}
const transaction = Sentry.startTransaction({
op: "test",
name: "My First Test Transaction",
});
setTimeout(() => {
const rand = Math.floor(Math.random() * 2);
if (rand == 0) {
wowee();
} else {
wave();
}
}, 99);