René's URL Explorer Experiment


Title: feat(cloudflare): Instrument Cloudflare rate limiter bindings by PeterWadie · Pull Request #22035 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(cloudflare): Instrument Cloudflare rate limiter bindings by PeterWadie · Pull Request #22035 · getsentry/sentry-javascript

X Title: feat(cloudflare): Instrument Cloudflare rate limiter bindings by PeterWadie · Pull Request #22035 · getsentry/sentry-javascript

Description: Adds automatic tracing for Cloudflare Workers rate limiter bindings, mirroring the existing R2/Queue/D1 binding instrumentation. When a RateLimit binding is accessed on env, its limit() calls are wrapped in a span. Details New instrumentRateLimit wraps the binding in a Proxy and starts a span named rate_limit around limit(), with the standard auto.faas.cloudflare.rate_limit origin. Detection uses a limit duck-type in isBinding, wired into instrumentEnv after the more specific Queue/R2/D1 checks so those win when a binding also happens to expose limit. The rate limit key is intentionally not recorded, since it commonly contains user-identifying data (e.g. an IP address or user id). Cloudflare does not emit a native span for the rate limiter binding, so no op or custom cloudflare.rate_limit.* attributes are set for now. These can be added later if/when they land in Sentry's semantic conventions. Includes unit tests plus an integration suite covering both an allowed call and a rate-limited (success: false) call. Fixes #20871

Open Graph Description: Adds automatic tracing for Cloudflare Workers rate limiter bindings, mirroring the existing R2/Queue/D1 binding instrumentation. When a RateLimit binding is accessed on env, its limit() calls are w...

X Description: Adds automatic tracing for Cloudflare Workers rate limiter bindings, mirroring the existing R2/Queue/D1 binding instrumentation. When a RateLimit binding is accessed on env, its limit() calls are w...

Opengraph URL: https://github.com/getsentry/sentry-javascript/pull/22035

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.3

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/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:ba9255e1-9172-303b-f0ed-04b3cf6fc383
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCE1A:7CBC:8346E:B526D:6B042CF3
html-safe-nonce146fff5b554314ff12c2dea5b8778ccb4543fb1c1bcc6ea79b88cf747289d3fd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRTFBOjdDQkM6ODM0NkU6QjUyNkQ6NkIwNDJDRjMiLCJ2aXNpdG9yX2lkIjoiNjg1OTE2NzMyMTYwMTM1NDk5NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac31e8e981a3bfe947061f9989e495860296b2cb358ccf8d9ce3104988178ab328
hovercard-subject-tagpull_request:4011187579
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/getsentry/sentry-javascript/pull/22035/files
twitter:imagehttps://avatars.githubusercontent.com/u/47214483?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/47214483?s=400&v=4
og:image:altAdds automatic tracing for Cloudflare Workers rate limiter bindings, mirroring the existing R2/Queue/D1 binding instrumentation. When a RateLimit binding is accessed on env, its limit() calls are w...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e
turbo-cache-controlno-preview
diff-viewunified
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 full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasec3dd496c3da6ea6b77e69c09279d2b81604654f1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/22035/changes#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F22035%2Ffiles
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%2Fpull%2F22035%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/22035/changes
Reloadhttps://github.com/getsentry/sentry-javascript/pull/22035/changes
Reloadhttps://github.com/getsentry/sentry-javascript/pull/22035/changes
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues341 (341)https://github.com/getsentry/sentry-javascript/issues
Pull requests57 (57)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
Sign up for GitHub https://github.com/signup?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fgetsentry%2Fsentry-javascript%2Fissues%2Fnew%2Fchoose
JPeer264https://github.com/JPeer264
getsentry:develophttps://github.com/getsentry/sentry-javascript/tree/develop
PeterWadie:feat/cloudflare-rate-limit-instrumentationhttps://github.com/PeterWadie/sentry-javascript/tree/feat/cloudflare-rate-limit-instrumentation
Conversation 34 https://github.com/getsentry/sentry-javascript/pull/22035
Commits 5 https://github.com/getsentry/sentry-javascript/pull/22035/commits
Checks 86 https://github.com/getsentry/sentry-javascript/pull/22035/checks
Files changed https://github.com/getsentry/sentry-javascript/pull/22035/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/22035/changes
feat(cloudflare): Instrument Cloudflare rate limiter bindings https://github.com/getsentry/sentry-javascript/pull/22035/changes#top
Show all changes 5 commits https://github.com/getsentry/sentry-javascript/pull/22035/files
53a0a03 feat(cloudflare): Instrument Cloudflare rate limiter bindings PeterWadie Jul 8, 2026 https://github.com/getsentry/sentry-javascript/pull/22035/commits/53a0a038b78d20f92b80d5ecee5a9099802c7614
d2be645 test(cloudflare): Add rate limiter binding integration test PeterWadie Jul 8, 2026 https://github.com/getsentry/sentry-javascript/pull/22035/commits/d2be6454305e7ed601ac87fed6bde5f4cdbf4253
2504ba9 ref(cloudflare): Address review feedback on rate limiter instrumentation PeterWadie Jul 13, 2026 https://github.com/getsentry/sentry-javascript/pull/22035/commits/2504ba92c4ccd1d423141706bcdaefc45767e005
0f63dd7 test(cloudflare): Filter rate limiter spans by data['sentry.origin'] PeterWadie Jul 13, 2026 https://github.com/getsentry/sentry-javascript/pull/22035/commits/0f63dd770a4b9016e06df32ba39c0e3dc1ea7260
4a9eb20 Merge branch 'develop' into feat/cloudflare-rate-limit-instrumentation PeterWadie Jul 14, 2026 https://github.com/getsentry/sentry-javascript/pull/22035/commits/4a9eb206ddf24fec9044d97414fddd3a3f271ec3
Clear filters https://github.com/getsentry/sentry-javascript/pull/22035/files
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/22035/changes
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/22035/changes
index.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-c7b87a60bb0c1776512f010bc6d4fbf631a90d9c0fa295c4fed48ab47f265a76
test.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ae4a8cc7531c8166c93d68721468d3bf6842dcea5ff3729086dc0747123cc9e0
wrangler.jsonc https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-2c9784e053e4194bf505bdb59d6433d0016b6531b074c9457889be5e1cdd54ce
instrumentEnv.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-1a67d3f716881186d7198f54db623c8107f9f9bc60cacf28fa60ea97f17b6725
instrumentRateLimit.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-106886320e828a0dae9f86542c7414981b2744c4ca8640b57fedb6ce71aea3fd
isBinding.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ae6e3dd40d965157f24ae3fedac99bd18a99f2a0dfc4ba9b1a58b59307b6b7a5
instrumentEnv.test.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ee11691c622f45116cecb77a5ff8eb7a80fbc9f6a247cfa1740b8f51fbb32f21
instrumentRateLimit.test.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-a30851e95b698a80cb7542a23692b59cda7479e973815766eb6dd7844f9db74f
isBinding.test.ts https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-d1dd42478694a73e562f37d1ae2eb43c6b7fd6052b4cf64d12be918f9105e0e3
dev-packages/cloudflare-integration-tests/suites/ratelimit/index.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-c7b87a60bb0c1776512f010bc6d4fbf631a90d9c0fa295c4fed48ab47f265a76
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/dev-packages/cloudflare-integration-tests/suites/ratelimit/index.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
dev-packages/cloudflare-integration-tests/suites/ratelimit/test.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ae4a8cc7531c8166c93d68721468d3bf6842dcea5ff3729086dc0747123cc9e0
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/dev-packages/cloudflare-integration-tests/suites/ratelimit/test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
dev-packages/cloudflare-integration-tests/suites/ratelimit/wrangler.jsonchttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-2c9784e053e4194bf505bdb59d6433d0016b6531b074c9457889be5e1cdd54ce
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/dev-packages/cloudflare-integration-tests/suites/ratelimit/wrangler.jsonc
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
packages/cloudflare/src/instrumentations/worker/instrumentEnv.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-1a67d3f716881186d7198f54db623c8107f9f9bc60cacf28fa60ea97f17b6725
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/packages/cloudflare/src/instrumentations/worker/instrumentEnv.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-1a67d3f716881186d7198f54db623c8107f9f9bc60cacf28fa60ea97f17b6725
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-1a67d3f716881186d7198f54db623c8107f9f9bc60cacf28fa60ea97f17b6725
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-1a67d3f716881186d7198f54db623c8107f9f9bc60cacf28fa60ea97f17b6725
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-1a67d3f716881186d7198f54db623c8107f9f9bc60cacf28fa60ea97f17b6725
packages/cloudflare/src/instrumentations/worker/instrumentRateLimit.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-106886320e828a0dae9f86542c7414981b2744c4ca8640b57fedb6ce71aea3fd
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/packages/cloudflare/src/instrumentations/worker/instrumentRateLimit.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/22035/changes
packages/cloudflare/src/utils/isBinding.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ae6e3dd40d965157f24ae3fedac99bd18a99f2a0dfc4ba9b1a58b59307b6b7a5
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/packages/cloudflare/src/utils/isBinding.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ae6e3dd40d965157f24ae3fedac99bd18a99f2a0dfc4ba9b1a58b59307b6b7a5
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ae6e3dd40d965157f24ae3fedac99bd18a99f2a0dfc4ba9b1a58b59307b6b7a5
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ae6e3dd40d965157f24ae3fedac99bd18a99f2a0dfc4ba9b1a58b59307b6b7a5
packages/cloudflare/test/instrumentations/instrumentEnv.test.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ee11691c622f45116cecb77a5ff8eb7a80fbc9f6a247cfa1740b8f51fbb32f21
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/packages/cloudflare/test/instrumentations/instrumentEnv.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ee11691c622f45116cecb77a5ff8eb7a80fbc9f6a247cfa1740b8f51fbb32f21
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-ee11691c622f45116cecb77a5ff8eb7a80fbc9f6a247cfa1740b8f51fbb32f21
packages/cloudflare/test/instrumentations/worker/instrumentRateLimit.test.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-a30851e95b698a80cb7542a23692b59cda7479e973815766eb6dd7844f9db74f
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/packages/cloudflare/test/instrumentations/worker/instrumentRateLimit.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
packages/cloudflare/test/utils/isBinding.test.tshttps://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-d1dd42478694a73e562f37d1ae2eb43c6b7fd6052b4cf64d12be918f9105e0e3
View file https://github.com/PeterWadie/sentry-javascript/blob/4a9eb206ddf24fec9044d97414fddd3a3f271ec3/packages/cloudflare/test/utils/isBinding.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/22035/{{ revealButtonHref }}
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-d1dd42478694a73e562f37d1ae2eb43c6b7fd6052b4cf64d12be918f9105e0e3
https://github.com/getsentry/sentry-javascript/pull/22035/changes#diff-d1dd42478694a73e562f37d1ae2eb43c6b7fd6052b4cf64d12be918f9105e0e3
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/22035/changes
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-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.