-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
79fa39f
commit 94ef620
Showing
10 changed files
with
97 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
class CustomIntegration { | ||
static id = 'CustomIntegration'; | ||
|
||
name = CustomIntegration.id; | ||
options = undefined; | ||
|
||
constructor(options) { | ||
this.options = options; | ||
} | ||
|
||
setupOnce(addGlobalEventProcessor, getCurrentHub) { | ||
addGlobalEventProcessor(event => event); | ||
const hub = getCurrentHub(); | ||
hub.captureMessage(options.name); | ||
} | ||
} | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
integrations: [new CustomIntegration()] | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
class CustomTransport extends Sentry.Transports.BaseTransport { | ||
constructor(options) { | ||
super(options); | ||
} | ||
|
||
sendEvent(event) { | ||
console.log("Sending Event"); | ||
return super.sendEvent(event); | ||
} | ||
|
||
sendSession(session) { | ||
console.log("Sending Session"); | ||
return super.sendSession(session); | ||
} | ||
} | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
transport: CustomTransport, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
sendClientReports: false, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
defaultIntegrations: false, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
Sentry.init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
release: "my-app@1.2.3", | ||
autoSessionTracking: false, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
debug: true, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
release: "my-app@1.2.3", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const Sentry = require("@sentry/node"); | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const Sentry = require("@sentry/node"); | ||
const _ = require("@sentry/tracing"); | ||
|
||
Sentry.init({ | ||
dsn: "https://00000000000000000000000000000000@o000000.ingest.sentry.io/0000000", | ||
tracesSampleRate: 1.0, | ||
}); | ||
|
||
const transaction = Sentry.startTransaction({ op: "task", name: "Important Stuff" }); | ||
|
||
setTimeout(() => { | ||
transaction.finish(); | ||
}, 1000); |