@degen/common-utils
Advanced tools
Comparing version 0.3.3 to 0.3.4
@@ -32,16 +32,22 @@ "use strict"; | ||
const constants_1 = __importDefault(require("./constants")); | ||
const LogUtils_1 = __importDefault(require("./LogUtils")); | ||
const SentryUtils = { | ||
init: (appName, appVersion) => { | ||
Sentry.init({ | ||
dsn: `${constants_1.default.sentryDSN}`, | ||
tracesSampleRate: 1.0, | ||
release: `${appName}@${appVersion}`, | ||
environment: `${process.env.SENTRY_ENVIRONMENT}`, | ||
integrations: [ | ||
new integrations_1.RewriteFrames({ | ||
root: __dirname, | ||
}), | ||
new Sentry.Integrations.Http({ tracing: true }), | ||
], | ||
}); | ||
try { | ||
Sentry.init({ | ||
dsn: `${constants_1.default.sentryDSN}`, | ||
tracesSampleRate: 1.0, | ||
release: `${appName}@${appVersion}`, | ||
environment: `${process.env.SENTRY_ENVIRONMENT}`, | ||
integrations: [ | ||
new integrations_1.RewriteFrames({ | ||
root: __dirname, | ||
}), | ||
new Sentry.Integrations.Http({ tracing: true }), | ||
], | ||
}); | ||
} | ||
catch (e) { | ||
LogUtils_1.default.logError('failed to initialize sentry', e); | ||
} | ||
}, | ||
@@ -48,0 +54,0 @@ }; |
{ | ||
"name": "@degen/common-utils", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "NPM package containing common utilities for various node projects.", | ||
@@ -8,3 +8,3 @@ "main": "dist/main.js", | ||
"repository": "git@github.com:degen-workgroup/common-utils.git", | ||
"author": "Brian <patinobrian@gmail.com>", | ||
"author": "Brian Patino <patinobrian@gmail.com>", | ||
"license": "MIT", | ||
@@ -11,0 +11,0 @@ "publishConfig": { |
Sorry, the diff of this file is not supported yet
30042
387