-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Send array and hash context as custom_data
When reporting via the Rails error reporter, there was no way to send custom data, with this change it can be included in context[:appsignal][:custom_data] and it will be sent to Appsignal. Fixes #984
- Loading branch information
Showing
3 changed files
with
47 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
bump: "patch" | ||
type: "add" | ||
--- | ||
|
||
Allow passing custom data using the `appsignal` context via the Rails error reporter: | ||
|
||
```ruby | ||
custom_data = { :hash => { :one => 1, :two => 2 }, :array => [1, 2] } | ||
Rails.error.handle(:context => { :appsignal => { :custom_data => custom_data } }) do | ||
raise "Test" | ||
end | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters