Skip to content

Commit 0eac510

Browse files
authored
meta(changelog): Update changelog for v7.105.0 (#10880)
Includes something we forgot to re-export before...
1 parent 7b11379 commit 0eac510

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,25 @@
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

0 commit comments

Comments
 (0)