Deprecate Sentry release (#11651)
Let's deprecate Sentry Release and use APP_VERSION instead. It'll make it more clear in the interface to use named version for bug analysis, than commit sha
This commit is contained in:
@ -63,7 +63,7 @@ export class ClientConfigResolver {
|
||||
},
|
||||
sentry: {
|
||||
environment: this.twentyConfigService.get('SENTRY_ENVIRONMENT'),
|
||||
release: this.twentyConfigService.get('SENTRY_RELEASE'),
|
||||
release: this.twentyConfigService.get('APP_VERSION'),
|
||||
dsn: this.twentyConfigService.get('SENTRY_FRONT_DSN'),
|
||||
},
|
||||
captcha: {
|
||||
|
||||
@ -29,7 +29,7 @@ export const exceptionHandlerModuleFactory = async (
|
||||
type: ExceptionHandlerDriver.Sentry,
|
||||
options: {
|
||||
environment: twentyConfigService.get('SENTRY_ENVIRONMENT'),
|
||||
release: twentyConfigService.get('SENTRY_RELEASE'),
|
||||
release: twentyConfigService.get('APP_VERSION'),
|
||||
dsn: twentyConfigService.get('SENTRY_DSN') ?? '',
|
||||
serverInstance: adapterHost.httpAdapter?.getInstance(),
|
||||
debug:
|
||||
|
||||
@ -660,17 +660,6 @@ export class ConfigVariables {
|
||||
@IsString()
|
||||
SENTRY_FRONT_DSN: string;
|
||||
|
||||
@ConfigVariablesMetadata({
|
||||
group: ConfigVariablesGroup.ExceptionHandler,
|
||||
description: 'Release version for Sentry logging',
|
||||
})
|
||||
@ValidateIf(
|
||||
(env) => env.EXCEPTION_HANDLER_DRIVER === ExceptionHandlerDriver.Sentry,
|
||||
)
|
||||
@IsString()
|
||||
@IsOptional()
|
||||
SENTRY_RELEASE: string;
|
||||
|
||||
@ConfigVariablesMetadata({
|
||||
group: ConfigVariablesGroup.ExceptionHandler,
|
||||
description: 'Environment name for Sentry logging',
|
||||
|
||||
Reference in New Issue
Block a user