File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change 4
4
5
5
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
6
6
7
+ ## 7.105.0
8
+
9
+ ### Important Changes
10
+
11
+ - ** feat: Ensure ` withActiveSpan ` is exported everywhere (#10877 )**
12
+
13
+ You can use the ` withActiveSpan ` method to ensure a certain span is the active span in a given callback. This can be
14
+ used to create a span as a child of a specific span with the ` startSpan ` API methods:
15
+
16
+ ``` js
17
+ const parentSpan = Sentry .startInactiveSpan ({ name: ' parent' });
18
+ if (parentSpan) {
19
+ withActiveSpan (parentSpan, () => {
20
+ // This will be a direct child of parentSpan
21
+ const childSpan = Sentry .startInactiveSpan ({ name: ' child' });
22
+ });
23
+ }
24
+ ```
25
+
7
26
## 7.104.0
8
27
9
28
### Important Changes
You can’t perform that action at this time.
0 commit comments