-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #186 from mbret/develop
feat: added sentry DSN as env
- Loading branch information
Showing
3 changed files
with
8 additions
and
1 deletion.
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
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 @@ | ||
/* eslint-disable @typescript-eslint/no-unused-vars */ | ||
namespace NodeJS { | ||
interface ProcessEnv { | ||
SENTRY_DSN?: string; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ import * as Sentry from "@sentry/aws-serverless" | |
// import { nodeProfilingIntegration } from "@sentry/profiling-node" | ||
|
||
Sentry.init({ | ||
dsn: "https://[email protected]/5554285", | ||
dsn: process.env.SENTRY_DSN, | ||
// integrations: [nodeProfilingIntegration()], | ||
// Add Tracing by setting tracesSampleRate and adding integration | ||
// Set tracesSampleRate to 1.0 to capture 100% of transactions | ||
|