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 44
55- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66
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+
726## 7.104.0
827
928### Important Changes
You can’t perform that action at this time.
0 commit comments