-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(api): Remove Sentry profiling from all apps (#6660)
- Loading branch information
1 parent
14c5c23
commit 920bb75
Showing
5 changed files
with
13 additions
and
77 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 |
---|---|---|
@@ -1,24 +1,11 @@ | ||
import { nodeProfilingIntegration } from '@sentry/profiling-node'; | ||
import { init } from '@sentry/nestjs'; | ||
import { version } from '../package.json'; | ||
|
||
if (process.env.SENTRY_DSN) { | ||
init({ | ||
dsn: process.env.SENTRY_DSN, | ||
integrations: [ | ||
// Add our Profiling integration | ||
nodeProfilingIntegration(), | ||
], | ||
|
||
/* | ||
* Add Tracing by setting tracesSampleRate | ||
* We recommend adjusting this value in production | ||
*/ | ||
tracesSampleRate: 1.0, | ||
|
||
/* | ||
* Set sampling rate for profiling | ||
* This is relative to tracesSampleRate | ||
*/ | ||
profilesSampleRate: 1.0, | ||
environment: process.env.NODE_ENV, | ||
release: `v${version}`, | ||
ignoreErrors: ['Non-Error exception captured'], | ||
}); | ||
} |
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,28 +1,11 @@ | ||
import { init } from '@sentry/nestjs'; | ||
import { nodeProfilingIntegration } from '@sentry/profiling-node'; | ||
import version from '../package.json'; | ||
import { version } from '../package.json'; | ||
|
||
if (process.env.SENTRY_DSN) { | ||
init({ | ||
dsn: process.env.SENTRY_DSN, | ||
environment: process.env.NODE_ENV, | ||
// eslint-disable-next-line @typescript-eslint/no-base-to-string | ||
release: `v${version}`, | ||
integrations: [ | ||
// Add our Profiling integration | ||
nodeProfilingIntegration(), | ||
], | ||
|
||
/* | ||
* Add Tracing by setting tracesSampleRate | ||
* We recommend adjusting this value in production | ||
*/ | ||
tracesSampleRate: 1.0, | ||
|
||
/* | ||
* Set sampling rate for profiling | ||
* This is relative to tracesSampleRate | ||
*/ | ||
profilesSampleRate: 1.0, | ||
ignoreErrors: ['Non-Error exception captured'], | ||
}); | ||
} |
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,27 +1,11 @@ | ||
import { init } from '@sentry/node'; | ||
import packageJson from '../package.json'; | ||
import { nodeProfilingIntegration } from '@sentry/profiling-node'; | ||
import { init } from '@sentry/nestjs'; | ||
import { version } from '../package.json'; | ||
|
||
if (process.env.SENTRY_DSN) { | ||
init({ | ||
dsn: process.env.SENTRY_DSN, | ||
environment: process.env.NODE_ENV, | ||
release: `v${packageJson.version}`, | ||
integrations: [ | ||
// Add our Profiling integration | ||
nodeProfilingIntegration(), | ||
], | ||
|
||
/* | ||
* Add Tracing by setting tracesSampleRate | ||
* We recommend adjusting this value in production | ||
*/ | ||
tracesSampleRate: 1.0, | ||
|
||
/* | ||
* Set sampling rate for profiling | ||
* This is relative to tracesSampleRate | ||
*/ | ||
profilesSampleRate: 1.0, | ||
release: `v${version}`, | ||
ignoreErrors: ['Non-Error exception captured'], | ||
}); | ||
} |
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,13 +1,11 @@ | ||
import { nodeProfilingIntegration } from '@sentry/profiling-node'; | ||
import { init } from '@sentry/nestjs'; | ||
import packageJson from '../package.json'; | ||
import { version } from '../package.json'; | ||
|
||
if (process.env.SENTRY_DSN) { | ||
init({ | ||
dsn: process.env.SENTRY_DSN, | ||
environment: process.env.NODE_ENV, | ||
release: `v${packageJson.version}`, | ||
release: `v${version}`, | ||
ignoreErrors: ['Non-Error exception captured'], | ||
integrations: [nodeProfilingIntegration()], | ||
}); | ||
} |
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,27 +1,11 @@ | ||
import { init } from '@sentry/nestjs'; | ||
import { nodeProfilingIntegration } from '@sentry/profiling-node'; | ||
import { version } from '../package.json'; | ||
|
||
if (process.env.SENTRY_DSN) { | ||
init({ | ||
dsn: process.env.SENTRY_DSN, | ||
environment: process.env.NODE_ENV, | ||
release: `v${version}`, | ||
integrations: [ | ||
// Add our Profiling integration | ||
nodeProfilingIntegration(), | ||
], | ||
|
||
/* | ||
* Add Tracing by setting tracesSampleRate | ||
* We recommend adjusting this value in production | ||
*/ | ||
tracesSampleRate: 1.0, | ||
|
||
/* | ||
* Set sampling rate for profiling | ||
* This is relative to tracesSampleRate | ||
*/ | ||
profilesSampleRate: 1.0, | ||
ignoreErrors: ['Non-Error exception captured'], | ||
}); | ||
} |