Skip to content

Commit 9d2198e

Browse files
committed
Update changelog
1 parent 07084c5 commit 9d2198e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,15 @@
44

55
- Add `Sentry.with_child_span` for easier span recording [#1783](https://github.com/getsentry/sentry-ruby/pull/1783)
66

7+
```rb
8+
operation_result = Sentry.with_child_span(op: "my op") do |child_span|
9+
my_operation
10+
end
11+
12+
# the "my op" span will be attached to the result of Sentry.get_current_scope.get_span
13+
# which could be either the top-level transaction, or a span set by the user or other integrations
14+
```
15+
716
### Bug Fixes
817

918
- Set `last_event_id` only for error events [#1767](https://github.com/getsentry/sentry-ruby/pull/1767)

0 commit comments

Comments
 (0)