Skip to content

Commit

Permalink
Merge pull request #47 from vitaly-evsyukov/bugfix/clean-frames-for-e…
Browse files Browse the repository at this point in the history
…xisting-stacktraces

Add cleanFrames method call to existing stacktraces frames
  • Loading branch information
TheZeroSlave authored Mar 30, 2024
2 parents 750a11b + 720cbfa commit 07ed0f4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core.go
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,10 @@ func (c *core) addExceptionsFromError(
exception := sentry.Exception{Value: err.Error(), Type: getTypeName(err)}

if !c.cfg.DisableStacktrace {
exception.Stacktrace = sentry.ExtractStacktrace(err)
stacktrace := sentry.ExtractStacktrace(err)
stacktrace.Frames = c.filterFrames(stacktrace.Frames)

exception.Stacktrace = stacktrace
}

exceptions = append(exceptions, exception)
Expand Down

0 comments on commit 07ed0f4

Please sign in to comment.