Skip to content

Commit

Permalink
Don't send negative line numbers in profiles (#2158)
Browse files Browse the repository at this point in the history
  • Loading branch information
sl0thentr0py authored Nov 2, 2023
1 parent 1a74734 commit 7a65d3f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- Fix puma integration for versions before v5 [#2141](https://github.com/getsentry/sentry-ruby/pull/2141)
- Fix breadcrumbs with `warn` level not being ingested [#2150](https://github.com/getsentry/sentry-ruby/pull/2150)
- Fixes [#2145](https://github.com/getsentry/sentry-ruby/issues/2145)
- Don't send negative line numbers in profiles [#2158](https://github.com/getsentry/sentry-ruby/pull/2158)

## 5.12.0

Expand Down
2 changes: 1 addition & 1 deletion sentry-ruby/lib/sentry/profiler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def to_hash
}

frame_hash[:module] = mod if mod
frame_hash[:lineno] = frame_data[:line] if frame_data[:line]
frame_hash[:lineno] = frame_data[:line] if frame_data[:line] && frame_data[:line] >= 0

frame_hash
end
Expand Down

0 comments on commit 7a65d3f

Please sign in to comment.