We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07084c5 commit 9d2198eCopy full SHA for 9d2198e
CHANGELOG.md
@@ -4,6 +4,15 @@
4
5
- Add `Sentry.with_child_span` for easier span recording [#1783](https://github.com/getsentry/sentry-ruby/pull/1783)
6
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
16
### Bug Fixes
17
18
- Set `last_event_id` only for error events [#1767](https://github.com/getsentry/sentry-ruby/pull/1767)
0 commit comments