René's URL Explorer Experiment


Title: Add `ignoreSpans` option · Issue #16820 · getsentry/sentry-javascript · GitHub

Open Graph Title: Add `ignoreSpans` option · Issue #16820 · getsentry/sentry-javascript

X Title: Add `ignoreSpans` option · Issue #16820 · getsentry/sentry-javascript

Description: Description We have the recurring request to be able to ignore certain spans. We removed the option to use beforeSendSpan to allow dropping spans, because it can break metric extrapolation when using non-deterministic code to drop spans....

Open Graph Description: Description We have the recurring request to be able to ignore certain spans. We removed the option to use beforeSendSpan to allow dropping spans, because it can break metric extrapolation when usi...

X Description: Description We have the recurring request to be able to ignore certain spans. We removed the option to use beforeSendSpan to allow dropping spans, because it can break metric extrapolation when usi...

Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/16820

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add `ignoreSpans` option","articleBody":"### Description\n\nWe have the recurring request to be able to ignore certain spans. We removed the option to use `beforeSendSpan` to allow dropping spans, because it can break metric extrapolation when using non-deterministic code to drop spans.\n\nThe replacement for this has been to configure specific integrations to drop spans. While this works, it has a few problems:\n\n1. It can be hard to know where/how to configure integrations. Option names can differ, and you may have to configure a whole bunch of integrations to make this work as you want.\n2. Some integrations do not have options to drop stuff. While we can add things in general, esp. with OpenTelemetry it can be hard because we require upstream changes.\n\nIn order to help alleviate this, we should add a `ignoreSpans` option that can be used to filter spans at creation time:\n\n```ts\ntype IgnoreSpansFilter = \n{\n  name: string | RegExp,\n  op: string | RegExp,\n} | \n{\n  name: string | RegExp\n} | \n{\n  op: string | RegExp\n}\n\ninterface Options {\n  // ...\n  ignoreSpans: (string | RegExp | IgnoreSpansFilter)[]\n}\n```\n\nThis will match against the span name **at creation time**, and make the span non-recording if it matches.\n\nImportant notes:\n* On browser, this should work reasonably well, as we emit all the spans and they _usually_ have the correct span name at span creation time. Important exception: pageload spans often get updated, they may not have the correct span name at creation time.\n* On node, we need to infer the name at creation time, which is a bit more expensive, resource wise. This is an opt-in option though, we just need to make it clear there may be a performance overhead with this. Also, in node span names can often be updated later, this also needs to be documented well.\n* We need to document well that ignoring a span like this will also drop child spans of this span. So this should ideally mostly be used for leaf nodes.\n\nThis function will be run in the place where we also run `beforeSendSpan`, so after processing. If possible, we will re-stitch parent-child relationships of spans that are dropped there.","author":{"url":"https://github.com/mydea","@type":"Person","name":"mydea"},"datePublished":"2025-07-07T08:15:07Z","url":"https://github.com/getsentry/sentry-javascript/issues/16820"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:4df80d7a-7197-686b-6145-b569bf87a963
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idDF8C:3F5AC:2AF878:3AB314:6B05D725
html-safe-nonce7a2b8eae4e20bb45c324d9458918f5592eae4522efc3131da143f0b600e56805
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJERjhDOjNGNUFDOjJBRjg3ODozQUIzMTQ6NkIwNUQ3MjUiLCJ2aXNpdG9yX2lkIjoiODAwNTMzNjkwNTY5MDc2NTA5MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac6d6430fe4caa40b0c21bde69a5d9ceb0db1f78a8c91fa9000db26a8077ca19d2
hovercard-subject-tagissue:3207999902
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-javascript/16820/issue_layout
twitter:imagehttps://opengraph.githubassets.com/bf273ff65d7fdb131bd0acd5007e7c1934057bae4ef1cddede084f358ed5e56d/getsentry/sentry-javascript/issues/16820
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/bf273ff65d7fdb131bd0acd5007e7c1934057bae4ef1cddede084f358ed5e56d/getsentry/sentry-javascript/issues/16820
og:image:altDescription We have the recurring request to be able to ignore certain spans. We removed the option to use beforeSendSpan to allow dropping spans, because it can break metric extrapolation when usi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemydea
hostnamegithub.com
expected-hostnamegithub.com
None7cc8361bc0396e5c33704280422dd7a38c5b91f6190589faea57461f56967249
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3328572
octolytics-dimension-repository_nwogetsentry/sentry-javascript
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3328572
octolytics-dimension-repository_network_root_nwogetsentry/sentry-javascript
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseab4da203740f827015a12d36851c8de196e908bf
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/issues/16820#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F16820
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fissues%2F16820
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16820
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16820
Reloadhttps://github.com/getsentry/sentry-javascript/issues/16820
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues329 (329)https://github.com/getsentry/sentry-javascript/issues
Pull requests56 (56)https://github.com/getsentry/sentry-javascript/pulls
Discussionshttps://github.com/getsentry/sentry-javascript/discussions
Actionshttps://github.com/getsentry/sentry-javascript/actions
Security and quality7 (7)https://github.com/getsentry/sentry-javascript/security
Insightshttps://github.com/getsentry/sentry-javascript/insights
https://github.com/getsentry/sentry-javascript
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16820
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16820
#17078https://github.com/getsentry/sentry-javascript/pull/17078
Add ignoreSpans optionhttps://github.com/getsentry/sentry-javascript/issues/16820#top
#17078https://github.com/getsentry/sentry-javascript/pull/17078
https://github.com/Lms24
https://github.com/mydea
mydeahttps://github.com/mydea
on Jul 7, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issue-3207999902
https://github.com/Lms24
Lms24https://github.com/Lms24
on Jul 7, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issuecomment-3044034898
https://github.com/s1gr1d
s1gr1dhttps://github.com/s1gr1d
on Jul 7, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issuecomment-3044056397
https://github.com/mydea
mydeahttps://github.com/mydea
on Jul 7, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issuecomment-3044181181
https://github.com/mydea
mydeahttps://github.com/mydea
on Jul 9, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issuecomment-3052756283
https://develop.sentry.dev/sdk/telemetry/spans/filtering/#filter-with-ignorespanshttps://develop.sentry.dev/sdk/telemetry/spans/filtering/#filter-with-ignorespans
mydeahttps://github.com/mydea
on Jul 18, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18697286819
mydeahttps://github.com/mydea
on Jul 18, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18697572257
feat(core): Add `ignoreSpans` optionhttps://github.com/getsentry/sentry-javascript/commit/5568d2c63b5a553eade49025e695d1eb8c003e81
5568d2chttps://github.com/getsentry/sentry-javascript/commit/5568d2c63b5a553eade49025e695d1eb8c003e81
feat(core): Add `ignoreSpans` optionhttps://github.com/getsentry/sentry-javascript/commit/77de26444d368151b4dd8f64b9b9c559619857b1
77de264https://github.com/getsentry/sentry-javascript/commit/77de26444d368151b4dd8f64b9b9c559619857b1
Lms24https://github.com/Lms24
Lms24https://github.com/Lms24
mydeahttps://github.com/mydea
on Jul 28, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18854916955
Lms24https://github.com/Lms24
on Jul 30, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18899351100
feat(core): Add `ignoreSpans` optionhttps://github.com/getsentry/sentry-javascript/commit/0b6338a423855f3d793d00681cee8a0ebf42ccfc
0b6338ahttps://github.com/getsentry/sentry-javascript/commit/0b6338a423855f3d793d00681cee8a0ebf42ccfc
https://github.com/arielweinberger
arielweinbergerhttps://github.com/arielweinberger
on Aug 1, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issuecomment-3141985818
getsantryhttps://github.com/apps/getsantry
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 1, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18930290133
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 1, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18930290465
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 1, 2025https://github.com/getsentry/sentry-javascript/issues/16820
s1gr1dhttps://github.com/s1gr1d
Waiting for: Product Ownerhttps://github.com/getsentry/sentry-javascript/issues?q=state%3Aopen%20label%3A%22Waiting%20for%3A%20Product%20Owner%22
on Aug 1, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18933540210
getsantryhttps://github.com/apps/getsantry
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
on Aug 1, 2025https://github.com/getsentry/sentry-javascript/issues/16820
Lms24https://github.com/Lms24
completedhttps://github.com/getsentry/sentry-javascript/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#17078https://github.com/getsentry/sentry-javascript/pull/17078
on Aug 4, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18973033284
Lms24https://github.com/Lms24
on Aug 4, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18973033309
feat(core): Add `ignoreSpans` option (#17078)https://github.com/getsentry/sentry-javascript/commit/97f67fcde395b6996ac08cfcae08fcb2303e79fe
#17078https://github.com/getsentry/sentry-javascript/pull/17078
97f67fchttps://github.com/getsentry/sentry-javascript/commit/97f67fcde395b6996ac08cfcae08fcb2303e79fe
https://github.com/Lms24
Lms24https://github.com/Lms24
on Aug 4, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issuecomment-3151201150
@arielweinbergerhttps://github.com/arielweinberger
Lms24https://github.com/Lms24
on Aug 5, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-18985977281
chore(changelog): Add entry for `ignoreSpans` (#17313)https://github.com/getsentry/sentry-javascript/commit/ef3cea05bbca20659cf74480cf2fcafb60005c97
#17313https://github.com/getsentry/sentry-javascript/pull/17313
ef3cea0https://github.com/getsentry/sentry-javascript/commit/ef3cea05bbca20659cf74480cf2fcafb60005c97
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Aug 6, 2025https://github.com/getsentry/sentry-javascript/issues/16820#issuecomment-3160980030
GitHub Actionshttps://help.github.com/en/actions
#17078https://github.com/getsentry/sentry-javascript/pull/17078
10.2.0 releasehttps://github.com/getsentry/sentry-javascript/releases/tag/10.2.0
Lms24https://github.com/Lms24
on Aug 12, 2025https://github.com/getsentry/sentry-javascript/issues/16820#event-19110855243
feat(js): Add `ignoreSpans` documentation to Options page (#14572)https://github.com/getsentry/sentry-docs/commit/7b1731c5bc27ff65e90055787f6ddb6be60c3d8d
#14572https://github.com/getsentry/sentry-docs/pull/14572
7b1731chttps://github.com/getsentry/sentry-docs/commit/7b1731c5bc27ff65e90055787f6ddb6be60c3d8d
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-javascript/issues/16820
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-javascript/issues/16820
Lms24https://github.com/Lms24
GitHub Issues with 👀 3https://github.com/orgs/getsentry/projects/227
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.