Skip to content

Commit ef3cea0

Browse files
authored
chore(changelog): Add entry for ignoreSpans (#17313)
Adds an important change entry for #16820 for the next release
1 parent 9e73f23 commit ef3cea0

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

CHANGELOG.md

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

55
- "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
66

7+
### Important Changes
8+
9+
- **feat(core): Add `ignoreSpans` option ([#17078](https://github.com/getsentry/sentry-javascript/pull/17078))**
10+
11+
This release adds a new top-level `Sentry.init` option, `ignoreSpans`, that can be used as follows:
12+
13+
```js
14+
Sentry.init({
15+
ignoreSpans: [
16+
'partial match', // string matching on the span name
17+
/regex/, // regex matching on the span name
18+
{
19+
name: 'span name',
20+
op: /http.client/,
21+
},
22+
],
23+
});
24+
```
25+
26+
Spans matching the filter criteria will not be recorded. Potential child spans of filtered spans will be re-parented, if possible.
27+
728
## 10.1.0
829

930
- feat(nuxt): Align build-time options to follow bundler plugins structure ([#17255](https://github.com/getsentry/sentry-javascript/pull/17255))

0 commit comments

Comments
 (0)