From 8190672bc9d1217e93f2c76f395a59b6c073ba20 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Mon, 4 Aug 2025 17:23:11 +0200 Subject: [PATCH] chore(changelog): Add entry for `ignoreSpans` --- CHANGELOG.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 41853c372711..e9d6f199b5f4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,27 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +### Important Changes + +- **feat(core): Add `ignoreSpans` option ([#17078](https://github.com/getsentry/sentry-javascript/pull/17078))** + +This release adds a new top-level `Sentry.init` option, `ignoreSpans`, that can be used as follows: + +```js +Sentry.init({ + ignoreSpans: [ + 'partial match', // string matching on the span name + /regex/, // regex matching on the span name + { + name: 'span name', + op: /http.client/, + }, + ], +}); +``` + +Spans matching the filter criteria will not be recorded. Potential child spans of filtered spans will be re-parented, if possible. + ## 10.1.0 - feat(nuxt): Align build-time options to follow bundler plugins structure ([#17255](https://github.com/getsentry/sentry-javascript/pull/17255))