-
Notifications
You must be signed in to change notification settings - Fork 0
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
n0str
authored and
n0str
committed
Dec 5, 2024
1 parent
d46e8ef
commit 10baa89
Showing
3 changed files
with
5 additions
and
4 deletions.
There are no files selected for viewing
Submodule collector
updated
3 files
+6 −0 | cmd/collector/main.go | |
+19 −3 | pkg/server/errorshandler/handler_sentry.go | |
+4 −0 | pkg/server/errorshandler/messages.go |
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 |
---|---|---|
@@ -1,10 +1,11 @@ | ||
import sentry_sdk | ||
import os | ||
|
||
HAWK_INTEGRATION_TOKEN = os.getenv("SENTRY_PROJECT_ID", "eyJpbnRlZ3JhdGlvbklkIjoiYzlmZTY1MzYtYjVkYi00NDNmLWI1MmEtMWQwNDY1OThkNDNiIiwic2VjcmV0IjoiNzAwZTAwYTQtM2E4Mi00NTQ3LTkzOGUtMTMzMGJhNzgwY2UwIn0=") | ||
HAWK_INTEGRATION_TOKEN = os.getenv("SENTRY_PROJECT_ID", "eyJpbnRlZ3JhdGlvbklkIjoiOWQ0MzUwMzgtMWQ3OS00NTlhLWJhMWUtZWQwMDVjYzI0NTM0Iiwic2VjcmV0IjoiZGU3ODZkMDAtNzE2Ni00ZTYzLWI5YzAtYTFjNjcyOWZlOGU5In0=") | ||
|
||
sentry_sdk.init( | ||
dsn=f"http://{HAWK_INTEGRATION_TOKEN}@localhost:3000/0", | ||
debug=True | ||
) | ||
division_by_zero = 1 / 0 | ||
division_by_zero = 1 / 0 | ||
# raise Exception("This is a test exception") |
Submodule workers
updated
6 files
+3 −1 | package.json | |
+9 −0 | workers/sentry/README.md | |
+10 −0 | workers/sentry/package.json | |
+134 −0 | workers/sentry/src/index.ts | |
+12 −0 | workers/sentry/types/sentry-envelope.ts | |
+12 −0 | workers/sentry/types/sentry-event-worker-task.d.ts |