Skip to content

Commit

Permalink
Set Sentry release from environment.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmhobbs committed Oct 7, 2024
1 parent d642d22 commit 123506f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions node-src/errorMonitoring.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ export function filterBreadcrumb(breadcrumb: Sentry.Breadcrumb) {

Sentry.init({
dsn: 'https://4fa173db2ef3fb073b8ea153a5466d28@o4504181686599680.ingest.us.sentry.io/4507930289373184',
release: process.env.SENTRY_RELEASE || process.env.npm_package_version,
sampleRate: 1,
environment: process.env.SENTRY_ENVIRONMENT,
enabled:
Expand Down
2 changes: 2 additions & 0 deletions tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export default defineConfig((options) => [
target: 'node16', // Storybook still supports Node 16
env: {
SENTRY_ENVIRONMENT: process.env.CI ? 'production' : 'development',
SENTRY_RELEASE: process.env.SENTRY_RELEASE || 'development',
},
},
{
Expand All @@ -35,6 +36,7 @@ export default defineConfig((options) => [
target: 'node20', // Sync with `runs.using` in action.yml
env: {
SENTRY_ENVIRONMENT: process.env.CI ? 'production' : 'development',
SENTRY_RELEASE: process.env.SENTRY_RELEASE || 'development',
},
},
]);

0 comments on commit 123506f

Please sign in to comment.