feat: add SENTRY_RELEASE env (#4912)

Add support for a new SENTRY_RELEASE and SENTRY_ENVIRONMENT env.
It is optional and allows to init sentry with a Release version and an
env (used internally at Twenty).
Docker image have been updated do intergrate the new env as an Argument
This commit is contained in:
Quentin G
2024-04-11 16:53:15 +02:00
committed by GitHub
parent c69a3f01da
commit bf60227d67
15 changed files with 55 additions and 8 deletions

View File

@ -44,6 +44,12 @@ class Support {
@ObjectType()
class Sentry {
@Field(() => String, { nullable: true })
environment?: string;
@Field(() => String, { nullable: true })
release?: string;
@Field(() => String, { nullable: true })
dsn?: string;
}

View File

@ -39,7 +39,9 @@ export class ClientConfigResolver {
),
},
sentry: {
dsn: this.environmentService.get('SENTRY_DSN'),
environment: this.environmentService.get('SENTRY_ENVIRONMENT'),
release: this.environmentService.get('SENTRY_RELEASE'),
dsn: this.environmentService.get('SENTRY_DSN_FRONT'),
},
};