Skip to content

Commit

Permalink
- Remove the is_array check
Browse files Browse the repository at this point in the history
  • Loading branch information
Satish Gandham committed Jun 16, 2021
1 parent 172bf61 commit 2ffd43b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions app/client/src/utils/PerformanceTracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,11 @@ class PerformanceTracker {
);
}
const newTransaction = Sentry.startTransaction({ name: eventName });
if (Array.isArray(tags)) {
tags.forEach(({ name: tagName, value }) => {
newTransaction.setTag(tagName, value);
});
}

tags.forEach(({ name: tagName, value }) => {
newTransaction.setTag(tagName, value);
});

newTransaction.setData("startData", data);
Sentry.getCurrentHub().configureScope((scope) =>
scope.setSpan(newTransaction),
Expand Down

0 comments on commit 2ffd43b

Please sign in to comment.