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
api/package-lock.json generated

Binary file not shown.

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());

View File

@ -53,7 +53,7 @@
"lambert-server": "^1.2.12",
"missing-native-js-functions": "^1.2.17",
"multer": "^1.4.2",
"picocolors": "^1.0.0",
"nanocolors": "^0.2.12",
"node-fetch": "^2.6.1",
"supertest": "^6.1.6",
"typescript": "^4.1.2"

Binary file not shown.

BIN
util/package-lock.json generated

Binary file not shown.

View File

@ -3,6 +3,7 @@ import { BaseClassWithoutId, PrimaryIdColumn } from "./BaseClass";
import crypto from "crypto";
import { Snowflake } from "../util/Snowflake";
import { SessionsReplace } from "..";
import { hostname } from "os";
@Entity("config")
export class ConfigEntity extends BaseClassWithoutId {
@ -193,6 +194,7 @@ export interface ConfigValue {
enabled: boolean;
endpoint: string;
traceSampleRate: number;
environment: string;
}
}
@ -385,7 +387,8 @@ export const DefaultConfigOptions: ConfigValue = {
},
sentry: {
enabled: false,
endpoint: "",
traceSampleRate: 1.0
endpoint: "https://05e8e3d005f34b7d97e920ae5870a5e5@sentry.thearcanebrony.net/6",
traceSampleRate: 1.0,
environment: hostname()
}
};

BIN
webrtc/package-lock.json generated Normal file

Binary file not shown.