Merge pull request #3888 from keymanapp/fix/web/sentry-environment

fix(common/core/web): Add environment to web Sentry reports
This commit is contained in:
Darcy Wong 2020-11-18 14:28:44 +07:00 committed by GitHub
commit ff3aa8501a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -149,7 +149,8 @@ namespace com.keyman {
beforeSend: this.prepareEventDebugWrapper.bind(this),
debug: DEBUG,
dsn: 'https://cf96f32d107c4286ab2fd82af49c4d3b@sentry.keyman.com/11', // keyman-web DSN
release: com.keyman.environment.SENTRY_RELEASE
release: com.keyman.environment.SENTRY_RELEASE,
environment: com.keyman.environment.ENVIRONMENT
});
}
}

View file

@ -17,6 +17,7 @@ echo "//Autogenerated file - do not modify!
namespace com.keyman.environment {
export var VERSION = \"$VERSION_RELEASE\";
export var BUILD = $VERSION_PATCH;
export var ENVIRONMENT = \"$VERSION_ENVIRONMENT\";
export var SENTRY_RELEASE = \"release-$VERSION_WITH_TAG\";
}
" >> $ENVIRONMENT_TS
" >> $ENVIRONMENT_TS