Repository navigation
trace: add span around builder install with packages and error tags - #15071
Conversation
- Add tracedInstallBuilders(span, buildersDir, buildersToAdd) with vc.installBuilders span, packages tag, and error tag on failure - Move installBuilders and tracedInstallBuilders to install-builders.ts - importBuilders accepts optional span and passes it to tracedInstallBuilders - Build command passes span into importBuilders Co-authored-by: Cursor <[email protected]>
🦋 Changeset detectedLatest commit: e4c58a4 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
📦 CLI Tarball ReadyThe Vercel CLI tarball for this PR is now available! Quick TestYou can test this PR's CLI directly by running: npx https://vercel-9eokrdhkk.vercel.sh/tarballs/vercel.tgz --helpUse in vercel.jsonTo use this CLI version in your project builds, add to your {
"build": {
"env": {
"VERCEL_CLI_VERSION": "vercel@https://vercel-9eokrdhkk.vercel.sh/tarballs/vercel.tgz"
}
}
}Python Runtime WheelA Python runtime wheel was also built for this PR. |
🧪 Unit Test StrategyComparing: Strategy: Affected packages only ✅ Only testing packages that have been modified or depend on modified packages. Affected packages - 1 (3%)
Unaffected packages - 39 (98%)
Results
This comment is automatically generated based on the affected testing strategy |
…allBuilders/untracedInstallBuilders Co-authored-by: Cursor <[email protected]>
This PR was opened by the [Changesets release](https://github.com/changesets/action) GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or [setup this action to publish automatically](https://github.com/changesets/action#with-publishing). If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated. # Releases ## [email protected] ### Patch Changes - Add more precise errors and debug messages for auth issues ([#14992](#14992)) - Add tracing when installing builders ([#15071](#15071)) - Use namespaced vc.builder span attributes (builder.name, builder.version, builder.dynamicallyInstalled) so they appear correctly in Datadog and don't conflict with reserved `version` tag ([#15078](#15078)) - non-interactive mode should allow scope argument ([#15077](#15077)) Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Summary
tracedInstallBuilders(span, buildersDir, buildersToAdd)withvc.installBuildersspan,packagestag, anderrortag on failureinstallBuildersandtracedInstallBuildersto newinstall-builders.tsimportBuildersaccepts optionalspanand passes it totracedInstallBuildersspanintoimportBuildersMade with Cursor
Note
Low Risk Change
This PR adds tracing/observability instrumentation around builder installation with span creation and error tags, plus refactors code into a new file - no security, auth, or business logic changes.
vc.installBuildersspan withpackagesanderrortags for tracinginstallBuildersto newinstall-builders.tsfile with traced/untraced variantsdynamicallyInstalledboolean property toBuilderWithPkginterfaceRisk assessment for commit e4c58a4.