Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/includes/set-context/ruby.mdx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
```ruby
Sentry.configure_scope do |scope|
scope.set_contexts('character.name' => 'Mighty Fighter')
scope.set_extras('character.name' => 'Mighty Fighter')
end
```
11 changes: 6 additions & 5 deletions src/platforms/ruby/common/migration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -220,13 +220,14 @@ end
New:

```ruby
Sentry.set_user(id: 1)
Sentry.set_tags(foo: "bar")
Sentry.set_extras(debug: true)
# send event
Sentry.with_scope do |scope|
scope.set_user(id: 1)
scope.set_tags(foo: "bar")
scope.set_extras(debug: true)
# send event
end
```


**Manual Message/Exception Capturing**

Old:
Expand Down