Skip to content

Commit 3b0c0f5

Browse files
environment to sentry
1 parent 8fb173c commit 3b0c0f5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

frontend/src/util/sentry.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ import * as Sentry from "@sentry/react";
44
if you are getting duplicate sentry errors, remember to feed an environment variable to init to make apart different staging or production environments
55
*/
66
export const initSentry = () => {
7+
console.log("sentry started")
78
Sentry.init({
89
dsn: "https://3ceddfdc2ec34770c94e954ead69872b@toska.it.helsinki.fi/23",
910
// Setting this option to true will send default PII data to Sentry.
1011
// For example, automatic IP address collection on events
12+
environment: 'production',
1113
sendDefaultPii: true,
1214
integrations: [
1315
Sentry.browserTracingIntegration(),

0 commit comments

Comments
 (0)