Skip to content

Commit 3a7b0a8

Browse files
authored
Merge pull request #262 from scientist-softserv/update-helm-values-file-with-sentry-for-testing-on-softserv-infra
Updates the deploy values file with the public sentry_dsn value & reverts yarn.lock commit
2 parents d4c36b4 + 28a54db commit 3a7b0a8

File tree

5 files changed

+165
-113
lines changed

5 files changed

+165
-113
lines changed

.env

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,5 @@ NEXT_PUBLIC_SCIENTIST_API_VERSION=v2
88
# values to use for testing
99
TEST_SCIENTIST_USER=[email protected]
1010
TEST_SCIENTIST_PW=!test1234
11+
12+
SENTRY_DSN=https://[email protected]/4504805305810944

ops/staging-deploy.tmpl.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ nextPublicToken: $NEXT_PUBLIC_TOKEN
77
nextAuthSecret: $NEXTAUTH_SECRET
88
clientSecret: $CLIENT_SECRET
99
clientId: $CLIENT_ID
10-
sentryDsn: $SENTRY_DSN
10+
sentryDsn: 'https://[email protected]/4504805305810944'
1111
replicaCount: 1
1212

1313
image:

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@
1919
"@rjsf/utils": "^5.0.0-beta.17",
2020
"@rjsf/validator-ajv8": "^5.0.1",
2121
"@scientist-softserv/webstore-component-library": "^0.1.15",
22+
"@sentry/react": "^7.42.0",
23+
"@sentry/tracing": "^7.42.0",
2224
"axios": "^1.1.3",
2325
"bootstrap": "^5.2.3",
2426
"next": "12.3.1",

pages/_app.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { Integrations } from '@sentry/tracing'
2+
import * as Sentry from '@sentry/react'
13
import { Footer, Header } from '@scientist-softserv/webstore-component-library'
24
import { SWRConfig } from 'swr'
35
import {
@@ -17,6 +19,14 @@ import {
1719
} from '../utils'
1820
import '../utils/theme/globals.scss'
1921

22+
Sentry.init({
23+
dsn: process.env.SENTRY_DSN,
24+
integrations: [
25+
new Integrations.BrowserTracing(),
26+
],
27+
tracesSampleRate: 1.0,
28+
})
29+
2030
const WebStore = ({ Component }) => {
2131
const { data: session } = useSession()
2232

0 commit comments

Comments
 (0)