Skip to content

Commit

Permalink
chore(release): pull hotfix-release/v1.20.2 into main (#2031)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Apr 1, 2023
2 parents 3a76adc + ff8ef42 commit a9eb4d8
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/draft-new-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
run: |
echo "Current version: $CURRENT_VERSION_VALUE"
echo "New version: $NEW_VERSION_VALUE"
npm run release -- -a --skip.tag
npm run release -- -a --skip.tag --no-verify
git push
- name: Create Pull Request
Expand Down
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

### [1.20.2](https://github.com/rudderlabs/rudder-transformer/compare/v1.20.1...v1.20.2) (2023-04-01)


### Bug Fixes

* add the missing git commit sha of the source to bugsnag ([#2030](https://github.com/rudderlabs/rudder-transformer/issues/2030)) ([65ccbdd](https://github.com/rudderlabs/rudder-transformer/commit/65ccbdd693b68c331e500a50f0019ea0a7e2a27c))

## [1.20.0](https://github.com/rudderlabs/rudder-transformer/compare/v1.19.0...v1.20.0) (2023-03-28)


Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "rudder-transformer",
"version": "1.20.1",
"version": "1.20.2",
"description": "",
"homepage": "https://github.com/rudderlabs/rudder-transformer#readme",
"bugs": {
Expand Down
27 changes: 14 additions & 13 deletions src/util/errorNotifier/bugsnag.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const {
NetworkInstrumentationError,
} = require('../../v0/util/errorTypes');

const { BUGSNAG_API_KEY: apiKey, transformer_build_version: imageVersion } = process.env;
const { BUGSNAG_API_KEY: apiKey, transformer_build_version: imageVersion, git_commit_sha: gitCommitSHA } = process.env;

const errorTypesDenyList = [
BaseError,
Expand Down Expand Up @@ -62,6 +62,9 @@ function init() {
image: {
version: imageVersion,
},
source: {
gitCommitSHA
}
},
onError(event) {
event.severity = 'error';
Expand All @@ -73,21 +76,19 @@ function init() {
}

function notify(err, context, metadata) {
if (bugsnagClient) {
const isDeniedErrType = errorTypesDenyList.some((errType) => err instanceof errType);
if (!bugsnagClient) return;

if (isDeniedErrType) return;
const isDeniedErrType = errorTypesDenyList.some((errType) => err instanceof errType);
if (isDeniedErrType) return;

const isDeniedErrPath = pathsDenyList.some((denyPath) =>
stackTraceParser.parse(err.stack)?.[0]?.file?.includes(denyPath),
);
const isDeniedErrPath = pathsDenyList.some((denyPath) =>
stackTraceParser.parse(err.stack)?.[0]?.file?.includes(denyPath),
);
if (isDeniedErrPath) return;

if (isDeniedErrPath) return;

bugsnagClient.notify(err, (event) => {
event.addMetadata('metadata', { ...metadata, opContext: context });
});
}
bugsnagClient.notify(err, (event) => {
event.addMetadata('metadata', { ...metadata, opContext: context });
});
}

module.exports = {
Expand Down

0 comments on commit a9eb4d8

Please sign in to comment.