Skip to content

Commit

Permalink
Added error to sentry scope (#2381)
Browse files Browse the repository at this point in the history
  • Loading branch information
Omri-Levy authored May 15, 2024
1 parent 286a96d commit fdcc030
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/workflows-service/src/sentry/sentry.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ export class SentryService {

public captureException(error: Error | string): void {
Sentry.withScope(scope => {
scope.setExtra('error', error);

this._setExtraData(scope);

this._setLevel(error, scope);
Expand Down

0 comments on commit fdcc030

Please sign in to comment.