René's URL Explorer Experiment


Title: feat(copilot): attribute tool metrics to invoking agents by j15z · Pull Request #6266 · simstudioai/sim · GitHub

Open Graph Title: feat(copilot): attribute tool metrics to invoking agents by j15z · Pull Request #6266 · simstudioai/sim

X Title: feat(copilot): attribute tool metrics to invoking agents by j15z · Pull Request #6266 · simstudioai/sim

Description: Summary Preserve the invoking agent across Sim tool execution and replay paths Attribute tool call, latency, and span telemetry to bounded agent names Fall back to main and collapse unknown labels to other Coordinate with the companion Mothership PR: https://github.com/simstudioai/mothership/pull/399 Type of Change New feature Testing bun run lint Full ship audit suite Focused Copilot tests: 51 passing Checklist Code follows project style guidelines Self-reviewed my changes Tests added/updated and passing No new warnings introduced I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)

Open Graph Description: Summary Preserve the invoking agent across Sim tool execution and replay paths Attribute tool call, latency, and span telemetry to bounded agent names Fall back to main and collapse unknown labels...

X Description: Summary Preserve the invoking agent across Sim tool execution and replay paths Attribute tool call, latency, and span telemetry to bounded agent names Fall back to main and collapse unknown labels...

Opengraph URL: https://github.com/simstudioai/sim/pull/6266

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:20458be7-e50a-0d65-12a9-7de610428eb4
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idAB40:3EFFC5:994188:D8EEC2:6AFB5368
html-safe-nonce159ee314e3b9944d15b5bca752976bab392a848f510391b0c8ed22e2998fe3b7
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBQjQwOjNFRkZDNTo5OTQxODg6RDhFRUMyOjZBRkI1MzY4IiwidmlzaXRvcl9pZCI6Ijg2MDY4MDM5MzI1NDgzODc2ODgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac48fe46ab97f66ebdd052b5dc988d182b9318b243d777b488aa33bd7799f433ea
hovercard-subject-tagpull_request:4207292949
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/simstudioai/sim/pull/6266/files
twitter:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/96924014?s=400&v=4
og:image:altSummary Preserve the invoking agent across Sim tool execution and replay paths Attribute tool call, latency, and span telemetry to bounded agent names Fall back to main and collapse unknown labels...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/simstudioai/sim git https://github.com/simstudioai/sim.git
octolytics-dimension-user_id199344406
octolytics-dimension-user_loginsimstudioai
octolytics-dimension-repository_id912559512
octolytics-dimension-repository_nwosimstudioai/sim
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id912559512
octolytics-dimension-repository_network_root_nwosimstudioai/sim
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
releasecbf66c024bb6d10e6955baa7413c54cf13a201bb
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/simstudioai/sim/pull/6266/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fsimstudioai%2Fsim%2Fpull%2F6266%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%2Fsimstudioai%2Fsim%2Fpull%2F6266%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=simstudioai%2Fsim
Reloadhttps://github.com/simstudioai/sim/pull/6266/files
Reloadhttps://github.com/simstudioai/sim/pull/6266/files
Reloadhttps://github.com/simstudioai/sim/pull/6266/files
simstudioaihttps://github.com/simstudioai
simhttps://github.com/simstudioai/sim
Codehttps://github.com/simstudioai/sim
Issues129 (129)https://github.com/simstudioai/sim/issues
Pull requests197 (197)https://github.com/simstudioai/sim/pulls
Actionshttps://github.com/simstudioai/sim/actions
Projectshttps://github.com/simstudioai/sim/projects
Security and qualityhttps://github.com/simstudioai/sim/security
Insightshttps://github.com/simstudioai/sim/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fsimstudioai%2Fsim%2Fissues%2Fnew%2Fchoose
j15zhttps://github.com/j15z
staginghttps://github.com/simstudioai/sim/tree/staging
feat/track-subagent-tool-usehttps://github.com/simstudioai/sim/tree/feat/track-subagent-tool-use
Conversation 8 https://github.com/simstudioai/sim/pull/6266
Commits 6 https://github.com/simstudioai/sim/pull/6266/commits
Checks 30 https://github.com/simstudioai/sim/pull/6266/checks
Files changed https://github.com/simstudioai/sim/pull/6266/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6266/files
feat(copilot): attribute tool metrics to invoking agents https://github.com/simstudioai/sim/pull/6266/files#top
Show all changes 6 commits https://github.com/simstudioai/sim/pull/6266/files
29fc796 feat(copilot): attribute Sim tool calls to agents j15z Aug 3, 2026 https://github.com/simstudioai/sim/pull/6266/commits/29fc7966c28794d570be688b6312e6d975b8ed34
f8e6144 fix(review): bound agent metric labels j15z Aug 3, 2026 https://github.com/simstudioai/sim/pull/6266/commits/f8e61448a94a58385c4bdedb667455fa6a5d2e4f
8f6a08d feat(copilot): attribute tool latency to agents j15z Aug 4, 2026 https://github.com/simstudioai/sim/pull/6266/commits/8f6a08da923fe078fb4f4bf0afb9f23122f38ed2
7903265 feat(copilot): attribute tool spans to agents j15z Aug 4, 2026 https://github.com/simstudioai/sim/pull/6266/commits/7903265d8651268d373906b4fdad2b34f990f41c
f4703a9 refactor(copilot): simplify tool attribute naming j15z Aug 4, 2026 https://github.com/simstudioai/sim/pull/6266/commits/f4703a966a5aa4afdb188643b53d9afc3fdef28a
560fa26 fix(copilot): bound tool span agent labels j15z Aug 4, 2026 https://github.com/simstudioai/sim/pull/6266/commits/560fa267c38779c68a9f8cc4ac47d0da5f14b02e
Clear filters https://github.com/simstudioai/sim/pull/6266/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6266/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6266/files
handlers.test.ts https://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
tool.ts https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
metrics.test.ts https://github.com/simstudioai/sim/pull/6266/files#diff-018d9d9927f8861d1234bbe6aad6808b25acfe231af730d9ac8951f6e8f1526d
metrics.ts https://github.com/simstudioai/sim/pull/6266/files#diff-24e7d6a511ce2a64d2fe47bc153ea90c9027262f2ac333e67b26acf32e6fa3d4
otel.ts https://github.com/simstudioai/sim/pull/6266/files#diff-97c0a939d33c855fe8ce60bb77af26ab5cdb3edf4df5f57b92410eab9f981d74
executor.test.ts https://github.com/simstudioai/sim/pull/6266/files#diff-7539d2e1e1a23e035c0b4aada8a99a35520a8afe81c7a358f94c7fb69cf96185
executor.ts https://github.com/simstudioai/sim/pull/6266/files#diff-055301ea08ccdebe72fc75f6a483db681d15088e4f77e56358000f3575e065d6
types.ts https://github.com/simstudioai/sim/pull/6266/files#diff-cda1d3c8d342e203a4cc8af4fea071c6c339afdd147d53336a71d3fb0b4909f5
apps/sim/lib/copilot/request/handlers/handlers.test.tshttps://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
View file https://github.com/simstudioai/sim/blob/560fa267c38779c68a9f8cc4ac47d0da5f14b02e/apps/sim/lib/copilot/request/handlers/handlers.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6266/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
https://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
https://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
https://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
https://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
https://github.com/simstudioai/sim/pull/6266/files#diff-427b9c6830a8d4e75f56c36707391bc74cdf9e673017a5f6a93585c244db46ae
apps/sim/lib/copilot/request/handlers/tool.tshttps://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
View file https://github.com/simstudioai/sim/blob/560fa267c38779c68a9f8cc4ac47d0da5f14b02e/apps/sim/lib/copilot/request/handlers/tool.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6266/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
https://github.com/simstudioai/sim/pull/6266/files#diff-107038219f6fe0643c3b3d6b65aef176242e7ae24989bcac88cd8a64974c6315
apps/sim/lib/copilot/request/metrics.test.tshttps://github.com/simstudioai/sim/pull/6266/files#diff-018d9d9927f8861d1234bbe6aad6808b25acfe231af730d9ac8951f6e8f1526d
View file https://github.com/simstudioai/sim/blob/560fa267c38779c68a9f8cc4ac47d0da5f14b02e/apps/sim/lib/copilot/request/metrics.test.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6266/{{ revealButtonHref }}
apps/sim/lib/copilot/request/metrics.tshttps://github.com/simstudioai/sim/pull/6266/files#diff-24e7d6a511ce2a64d2fe47bc153ea90c9027262f2ac333e67b26acf32e6fa3d4
View file https://github.com/simstudioai/sim/blob/560fa267c38779c68a9f8cc4ac47d0da5f14b02e/apps/sim/lib/copilot/request/metrics.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6266/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6266/files#diff-24e7d6a511ce2a64d2fe47bc153ea90c9027262f2ac333e67b26acf32e6fa3d4
https://github.com/simstudioai/sim/pull/6266/files#diff-24e7d6a511ce2a64d2fe47bc153ea90c9027262f2ac333e67b26acf32e6fa3d4
https://github.com/simstudioai/sim/pull/6266/files#diff-24e7d6a511ce2a64d2fe47bc153ea90c9027262f2ac333e67b26acf32e6fa3d4
https://github.com/simstudioai/sim/pull/6266/files#diff-24e7d6a511ce2a64d2fe47bc153ea90c9027262f2ac333e67b26acf32e6fa3d4
apps/sim/lib/copilot/request/otel.tshttps://github.com/simstudioai/sim/pull/6266/files#diff-97c0a939d33c855fe8ce60bb77af26ab5cdb3edf4df5f57b92410eab9f981d74
View file https://github.com/simstudioai/sim/blob/560fa267c38779c68a9f8cc4ac47d0da5f14b02e/apps/sim/lib/copilot/request/otel.ts
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/simstudioai/sim/pull/6266/{{ revealButtonHref }}
https://github.com/simstudioai/sim/pull/6266/files#diff-97c0a939d33c855fe8ce60bb77af26ab5cdb3edf4df5f57b92410eab9f981d74
https://github.com/simstudioai/sim/pull/6266/files#diff-97c0a939d33c855fe8ce60bb77af26ab5cdb3edf4df5f57b92410eab9f981d74
https://github.com/simstudioai/sim/pull/6266/files#diff-97c0a939d33c855fe8ce60bb77af26ab5cdb3edf4df5f57b92410eab9f981d74
https://github.com/simstudioai/sim/pull/6266/files#diff-97c0a939d33c855fe8ce60bb77af26ab5cdb3edf4df5f57b92410eab9f981d74
https://github.com/simstudioai/sim/pull/6266/files#diff-97c0a939d33c855fe8ce60bb77af26ab5cdb3edf4df5f57b92410eab9f981d74
Please reload this pagehttps://github.com/simstudioai/sim/pull/6266/files
Please reload this pagehttps://github.com/simstudioai/sim/pull/6266/files
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

Viewport: width=device-width


URLs of crawlers that visited me.