From 4518cacde19a2241e05cbb079e24280cab280d79 Mon Sep 17 00:00:00 2001 From: The Arcane Brony Date: Sun, 26 Dec 2021 18:19:31 +0100 Subject: Add env name in sentry, set default sentry endpoint --- util/src/entities/Config.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'util/src/entities') diff --git a/util/src/entities/Config.ts b/util/src/entities/Config.ts index 31384412..9e25c737 100644 --- a/util/src/entities/Config.ts +++ b/util/src/entities/Config.ts @@ -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() } }; -- cgit 1.4.1