René's URL Explorer Experiment


Title: feat(server-utils): Ensure Mastra tool/model spans are correctly nested by mydea · Pull Request #24368 · getsentry/sentry-javascript · GitHub

Open Graph Title: feat(server-utils): Ensure Mastra tool/model spans are correctly nested by mydea · Pull Request #24368 · getsentry/sentry-javascript

X Title: feat(server-utils): Ensure Mastra tool/model spans are correctly nested by mydea · Pull Request #24368 · getsentry/sentry-javascript

Description: Official Sentry SDKs for JavaScript. Contribute to getsentry/sentry-javascript development by creating an account on GitHub.

Open Graph Description: Stacked on #24362. The Mastra exporter builds the full gen_ai span tree (agent/model/tool) with rich attributes, but those spans are inactive, so work Mastra does inside an operation — a dataloader...

X Description: Stacked on #24362. The Mastra exporter builds the full gen_ai span tree (agent/model/tool) with rich attributes, but those spans are inactive, so work Mastra does inside an operation — a dataloader...

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

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4

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/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:e7a51e4d-3d70-5ca4-04e5-5ab19aa6e7b0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idC47E:276EF6:21C962:2D8126:6B04399B
html-safe-noncebfd2dfbce122cfc1c2307ae0754a375cfd7df8d87020dd253ab9ed4c633efc5f
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNDdFOjI3NkVGNjoyMUM5NjI6MkQ4MTI2OjZCMDQzOTlCIiwidmlzaXRvcl9pZCI6IjQzNDkyNTgwNDIzNTM5MjQ1MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac11ab1a76dc0725948adb3e1a5197c098c4221898e1222b4a51cdefd1b2a03895
hovercard-subject-tagpull_request:4525073202
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/getsentry/sentry-javascript/24368/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/5a3f6cf431c13e8066616edd5c4baf39c95a828920513a0bb801ccd41812af1d/getsentry/sentry-javascript/pull/24368
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/5a3f6cf431c13e8066616edd5c4baf39c95a828920513a0bb801ccd41812af1d/getsentry/sentry-javascript/pull/24368
og:image:altStacked on #24362. The Mastra exporter builds the full gen_ai span tree (agent/model/tool) with rich attributes, but those spans are inactive, so work Mastra does inside an operation — a dataloader...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemydea
hostnamegithub.com
expected-hostnamegithub.com
None9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64
turbo-cache-controlno-cache
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
release06dc448a76fe4751ac1db26524aefa3aa3e889a8
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/getsentry/sentry-javascript/pull/24368#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F24368
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%2F24368
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%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=getsentry%2Fsentry-javascript
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24368
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24368
Reloadhttps://github.com/getsentry/sentry-javascript/pull/24368
getsentryhttps://github.com/getsentry
sentry-javascripthttps://github.com/getsentry/sentry-javascript
Codehttps://github.com/getsentry/sentry-javascript
Issues340 (340)https://github.com/getsentry/sentry-javascript/issues
Pull requests55 (55)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
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
feat/mastra-active-spanshttps://github.com/getsentry/sentry-javascript/tree/feat/mastra-active-spans
Conversationhttps://github.com/getsentry/sentry-javascript/pull/24368
Commits2 (2)https://github.com/getsentry/sentry-javascript/pull/24368/commits
Checkshttps://github.com/getsentry/sentry-javascript/pull/24368/checks
Files changedhttps://github.com/getsentry/sentry-javascript/pull/24368/files
feat(server-utils): Ensure Mastra tool/model spans are correctly nestedhttps://github.com/getsentry/sentry-javascript/pull/24368#top
mydeahttps://github.com/mydea
develophttps://github.com/getsentry/sentry-javascript/tree/develop
feat/mastra-active-spanshttps://github.com/getsentry/sentry-javascript/tree/feat/mastra-active-spans
https://github.com/mydea
mydeahttps://github.com/mydea
Sep 14, 2026https://github.com/getsentry/sentry-javascript/pull/24368#issue-5447809331
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
#24362https://github.com/getsentry/sentry-javascript/pull/24362
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/mydea
mydeahttps://github.com/mydea
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/44e5a064270bf18b9bf8377ec748e36b0299cabb..db51de2f020af36b86693ad44b66d501d0b3129a
44e5a06https://github.com/getsentry/sentry-javascript/commit/44e5a064270bf18b9bf8377ec748e36b0299cabb
db51de2https://github.com/getsentry/sentry-javascript/commit/db51de2f020af36b86693ad44b66d501d0b3129a
Compare https://github.com/getsentry/sentry-javascript/compare/44e5a064270bf18b9bf8377ec748e36b0299cabb..db51de2f020af36b86693ad44b66d501d0b3129a
September 14, 2026 09:50https://github.com/getsentry/sentry-javascript/pull/24368#event-31091466300
https://github.com/mydea
mydeahttps://github.com/mydea
stack #24369https://github.com/getsentry/sentry-javascript/stack/24369
September 14, 2026 09:51https://github.com/getsentry/sentry-javascript/pull/24368#event-31091470604
https://github.com/apps/cursor
cursorhttps://github.com/apps/cursor
Sep 14, 2026 https://github.com/getsentry/sentry-javascript/pull/24368#pullrequestreview-5196298681
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24368/files
cursorhttps://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/24368#pullrequestreview-5196298681
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
https://cursor.com/open?link=eyJ2ZXJzaW9uIjoxLCJ0eXBlIjoiQlVHQk9UX0ZJWF9BTExfSU5fQ1VSU09SIiwiZGF0YSI6eyJyZWRpc0tleSI6ImJ1Z2JvdC1tdWx0aTpiYzU4NzIyNC0xNzVjLTQwOGEtYTc2Ny1hOGZmYmNjMmNjNWEiLCJlbmNyeXB0aW9uS2V5IjoiZlM4VXROY1pUcXdYWDVkY0Qwd01IR0ZlTC1EN2N6RE1PVUEtZk1tTnMzayIsImJyYW5jaCI6ImZlYXQvbWFzdHJhLWFjdGl2ZS1zcGFucyIsInJlcG9Pd25lciI6ImdldHNlbnRyeSIsInJlcG9OYW1lIjoic2VudHJ5LWphdmFzY3JpcHQiLCJwcm92aWRlciI6ImdpdGh1YiJ9fQ
Cursor dashboardhttps://www.cursor.com/dashboard/bugbot
Cursor Bugbothttps://cursor.com/bugbot
db51de2https://github.com/getsentry/sentry-javascript/commit/db51de2f020af36b86693ad44b66d501d0b3129a
herehttps://www.cursor.com/dashboard/bugbot
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
packages/server-utils/src/integrations/mastra.tshttps://github.com/getsentry/sentry-javascript/pull/24368/files#diff-005e806c00102d4fee9e10f49c999d67e3ad757a29f86c9d8cee68139c21f6aa
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
Sep 14, 2026https://github.com/getsentry/sentry-javascript/pull/24368#issuecomment-5662215008
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
View base workflow runhttps://github.com/getsentry/sentry-javascript/actions/runs/34912796815
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/mydea
mydeahttps://github.com/mydea
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/db51de2f020af36b86693ad44b66d501d0b3129a..114b61d94ff36055b605f238f2601d94b7947246
db51de2https://github.com/getsentry/sentry-javascript/commit/db51de2f020af36b86693ad44b66d501d0b3129a
114b61dhttps://github.com/getsentry/sentry-javascript/commit/114b61d94ff36055b605f238f2601d94b7947246
Compare https://github.com/getsentry/sentry-javascript/compare/db51de2f020af36b86693ad44b66d501d0b3129a..114b61d94ff36055b605f238f2601d94b7947246
September 14, 2026 09:58https://github.com/getsentry/sentry-javascript/pull/24368#event-31091854115
https://github.com/mydea
mydeahttps://github.com/mydea
September 14, 2026 10:55https://github.com/getsentry/sentry-javascript/pull/24368#event-31094707098
https://github.com/mydea
mydeahttps://github.com/mydea
code ownershttps://github.com/getsentry/sentry-javascript/blob/f63422b6ec9906753c8edd7db73d9d7e73daa475/.github/CODEOWNERS#L24
September 14, 2026 10:55https://github.com/getsentry/sentry-javascript/pull/24368#event-31094707950
https://github.com/mydea
mydeahttps://github.com/mydea
JPeer264https://github.com/JPeer264
RulaKhaledhttps://github.com/RulaKhaled
isaacshttps://github.com/isaacs
September 14, 2026 10:55https://github.com/getsentry/sentry-javascript/pull/24368#event-31094708561
https://github.com/mydea
mydeahttps://github.com/mydea
Sep 14, 2026https://github.com/getsentry/sentry-javascript/pull/24368#event-31094726543
https://github.com/mydea
mydeahttps://github.com/mydea
Sep 14, 2026 https://github.com/getsentry/sentry-javascript/pull/24368#ref-pullrequest-5449342514
feat(server-utils): Capture errors thrown in Mastra #24374 https://github.com/getsentry/sentry-javascript/pull/24374
https://github.com/chargome
chargomehttps://github.com/chargome
September 14, 2026 12:35https://github.com/getsentry/sentry-javascript/pull/24368#event-31100143813
September 14, 2026 12:41https://github.com/getsentry/sentry-javascript/pull/24368#event-31100526552
https://github.com/mydea
https://github.com/claude
feat(server-utils): Nest Mastra tool/model work under the exporter spanshttps://github.com/getsentry/sentry-javascript/pull/24368/commits/1a93c2209457f6545a0072006cc9814cb38908c9
1a93c22https://github.com/getsentry/sentry-javascript/pull/24368/commits/1a93c2209457f6545a0072006cc9814cb38908c9
https://github.com/mydea
mydeahttps://github.com/mydea
force-pushedhttps://github.com/getsentry/sentry-javascript/compare/114b61d94ff36055b605f238f2601d94b7947246..1a93c2209457f6545a0072006cc9814cb38908c9
114b61dhttps://github.com/getsentry/sentry-javascript/commit/114b61d94ff36055b605f238f2601d94b7947246
1a93c22https://github.com/getsentry/sentry-javascript/commit/1a93c2209457f6545a0072006cc9814cb38908c9
Compare https://github.com/getsentry/sentry-javascript/compare/114b61d94ff36055b605f238f2601d94b7947246..1a93c2209457f6545a0072006cc9814cb38908c9
September 14, 2026 12:41https://github.com/getsentry/sentry-javascript/pull/24368#event-31100530250
https://github.com/chargome
chargomehttps://github.com/chargome
Sep 14, 2026 https://github.com/getsentry/sentry-javascript/pull/24368#pullrequestreview-5198020761
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24368/files/1a93c2209457f6545a0072006cc9814cb38908c9
packages/server-utils/src/ai/mastra/span-registry.tshttps://github.com/getsentry/sentry-javascript/pull/24368/files/1a93c2209457f6545a0072006cc9814cb38908c9#diff-cd537d353878c0d5af42d8479862fbe9a8b1fd28c8b078474c2a4795e67636a3
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/RulaKhaled
RulaKhaledhttps://github.com/RulaKhaled
Sep 14, 2026 https://github.com/getsentry/sentry-javascript/pull/24368#pullrequestreview-5197981498
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24368/files/1a93c2209457f6545a0072006cc9814cb38908c9
RulaKhaledhttps://github.com/RulaKhaled
https://github.com/getsentry/sentry-javascript/pull/24368#pullrequestreview-5197981498
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
dev-packages/node-integration-tests/suites/tracing/mastra/scenario-tool-nesting.mjshttps://github.com/getsentry/sentry-javascript/pull/24368/files/1a93c2209457f6545a0072006cc9814cb38908c9#diff-e84985f1395e56fb847502b3797c21188834c359077db36246aa81804f8e5e9a
RulaKhaledhttps://github.com/RulaKhaled
Sep 14, 2026https://github.com/getsentry/sentry-javascript/pull/24368#discussion_r4005426080
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
mydeahttps://github.com/mydea
Sep 15, 2026https://github.com/getsentry/sentry-javascript/pull/24368#discussion_r4012865078
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/mydea
https://github.com/claude
test(server-utils): Cover Mastra active-span nesting for streams and …https://github.com/getsentry/sentry-javascript/pull/24368/commits/d50cd7da7920f4da3915aedaa1d0037761062dc6
d50cd7dhttps://github.com/getsentry/sentry-javascript/pull/24368/commits/d50cd7da7920f4da3915aedaa1d0037761062dc6
https://github.com/chargome
chargomehttps://github.com/chargome
Sep 15, 2026 https://github.com/getsentry/sentry-javascript/pull/24368#pullrequestreview-5206638161
View reviewed changes https://github.com/getsentry/sentry-javascript/pull/24368/files/d50cd7da7920f4da3915aedaa1d0037761062dc6
chargomehttps://github.com/chargome
https://github.com/getsentry/sentry-javascript/pull/24368#pullrequestreview-5206638161
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/mydea
mydeahttps://github.com/mydea
f97122fhttps://github.com/getsentry/sentry-javascript/commit/f97122f4c5047564f438dc7c7661208046341709
Sep 15, 2026https://github.com/getsentry/sentry-javascript/pull/24368#event-31154093270
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/mydea
mydeahttps://github.com/mydea
September 15, 2026 07:11https://github.com/getsentry/sentry-javascript/pull/24368#event-31154095791
mydeahttps://github.com/mydea
Sep 16, 2026 https://github.com/getsentry/sentry-javascript/pull/24368#ref-commit-0e51f82
https://github.com/mydea
https://github.com/claude
feat(server-utils): Capture errors thrown in Mastra (https://github.com/getsentry/sentry-javascript/commit/0e51f8240cf4279c68bdc336d1192738393f192d
#24374https://github.com/getsentry/sentry-javascript/pull/24374
)https://github.com/getsentry/sentry-javascript/commit/0e51f8240cf4279c68bdc336d1192738393f192d
0e51f82https://github.com/getsentry/sentry-javascript/commit/0e51f8240cf4279c68bdc336d1192738393f192d
#24368https://github.com/getsentry/sentry-javascript/pull/24368
#24368https://github.com/getsentry/sentry-javascript/pull/24368
https://claude.com/claude-codehttps://claude.com/claude-code
https://github.co/hiddenchars
https://github.com/getsentry/sentry-javascript/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-javascript%2Fpull%2F24368
https://github.com/apps/cursor
cursor[bot] https://github.com/apps/cursor
https://github.com/getsentry/sentry-javascript/pull/24368/files/db51de2f020af36b86693ad44b66d501d0b3129a
https://github.com/chargome
chargome https://github.com/chargome
https://github.com/getsentry/sentry-javascript/pull/24368/files/d50cd7da7920f4da3915aedaa1d0037761062dc6
https://github.com/RulaKhaled
RulaKhaled https://github.com/RulaKhaled
https://github.com/getsentry/sentry-javascript/pull/24368/files/1a93c2209457f6545a0072006cc9814cb38908c9
https://github.com/isaacs
isaacs https://github.com/isaacs
https://github.com/JPeer264
JPeer264 https://github.com/JPeer264
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
Please reload this pagehttps://github.com/getsentry/sentry-javascript/pull/24368
https://github.com/mydea
https://github.com/chargome
https://github.com/RulaKhaled
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.