Add env name in sentry, set default sentry endpoint

This commit is contained in:
The Arcane Brony
2021-12-26 18:19:31 +01:00
parent 579515f67c
commit 07768ecb68
9 changed files with 10 additions and 6 deletions

BIN
bundle/package-lock.json generated

Binary file not shown.

View File

@@ -62,7 +62,6 @@
"@fosscord/api": "file:../api",
"@fosscord/cdn": "file:../cdn",
"@fosscord/gateway": "file:../gateway",
"@fosscord/util": "file:../util",
"@sentry/node": "^6.16.1",
"@sentry/tracing": "^6.16.1",
"ajv": "8.6.2",
@@ -105,6 +104,7 @@
"typeorm": "^0.2.37",
"typescript": "^4.1.2",
"typescript-json-schema": "^0.50.1",
"ws": "^7.4.2"
"ws": "^7.4.2",
"nanocolors": "^0.2.12"
}
}
}

View File

@@ -70,6 +70,7 @@ async function main() {
new Tracing.Integrations.Express({ app }),
],
tracesSampleRate: Config.get().sentry.traceSampleRate,
environment: Config.get().sentry.environment
});
app.use(Sentry.Handlers.requestHandler());