Skip to content

Commit

Permalink
Expose :value in SingleExceptionInterface (#2072)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffwidman authored Jul 27, 2023
1 parent 7764384 commit 94a4895
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## Unreleased

### Features

- Make `:value` in `SingleExceptionInterface` writable, so that it can be modified in `before_send` under `event.exception.values[n].value` [#2072](https://github.com/getsentry/sentry-ruby/pull/2072)

## 5.10.0

### Features
Expand Down
3 changes: 2 additions & 1 deletion sentry-ruby/lib/sentry/interfaces/single_exception.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ class SingleExceptionInterface < Interface
OMISSION_MARK = "...".freeze
MAX_LOCAL_BYTES = 1024

attr_reader :type, :value, :module, :thread_id, :stacktrace
attr_reader :type, :module, :thread_id, :stacktrace
attr_accessor :value

def initialize(exception:, stacktrace: nil)
@type = exception.class.to_s
Expand Down

0 comments on commit 94a4895

Please sign in to comment.