Skip to content

trace: add span around builder install with packages and error tags - #15071

Merged
mehulkar merged 5 commits into
mainfrom
mk/trace-install-builder
Feb 17, 2026
Merged

mehulkar merged 5 commits into
mainfrom
mk/trace-install-builder

Conversation

@mehulkar

@mehulkar mehulkar commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Add tracedInstallBuilders(span, buildersDir, buildersToAdd) with vc.installBuilders span, packages tag, and error tag on failure
  • Move installBuilders and tracedInstallBuilders to new install-builders.ts
  • importBuilders accepts optional span and passes it to tracedInstallBuilders
  • Build command passes span into importBuilders

Made 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.

  • Adds vc.installBuilders span with packages and error tags for tracing
  • Moves installBuilders to new install-builders.ts file with traced/untraced variants
  • Adds dynamicallyInstalled boolean property to BuilderWithPkg interface

Risk assessment for commit e4c58a4.

- 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-bot

changeset-bot Bot commented Feb 17, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: e4c58a4

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
vercel Patch

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

@github-actions

github-actions Bot commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

📦 CLI Tarball Ready

The Vercel CLI tarball for this PR is now available!

Quick Test

You can test this PR's CLI directly by running:

npx https://vercel-9eokrdhkk.vercel.sh/tarballs/vercel.tgz --help

Use in vercel.json

To use this CLI version in your project builds, add to your vercel.json:

{
  "build": {
    "env": {
      "VERCEL_CLI_VERSION": "vercel@https://vercel-9eokrdhkk.vercel.sh/tarballs/vercel.tgz"
    }
  }
}

Python Runtime Wheel

A Python runtime wheel was also built for this PR.
To use in your Python project builds, also set this environment variable:

VERCEL_RUNTIME_PYTHON="vercel-runtime @ https://vercel-9eokrdhkk.vercel.sh/tarballs/vercel_runtime-0.5.0.dev1771291951+e4c58a4-py3-none-any.whl"

@github-actions

github-actions Bot commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

🧪 Unit Test Strategy

Comparing: bba50de → e4c58a4 (view diff)

Strategy: Affected packages only

✅ Only testing packages that have been modified or depend on modified packages.

Affected packages - 1 (3%)
  1. vercel
Unaffected packages - 39 (98%)
  1. @vercel-internals/get-package-json
  2. @vercel/backends
  3. @vercel/build-utils
  4. @vercel/cervel
  5. @vercel/cli-auth
  6. @vercel/client
  7. @vercel/config
  8. @vercel/detect-agent
  9. @vercel/edge
  10. @vercel/elysia
  11. @vercel/error-utils
  12. @vercel/express
  13. @vercel/fastify
  14. @vercel/firewall
  15. @vercel/frameworks
  16. @vercel/fs-detectors
  17. @vercel/functions
  18. @vercel/gatsby-plugin-vercel-builder
  19. @vercel/go
  20. @vercel/h3
  21. @vercel/hono
  22. @vercel/hydrogen
  23. @vercel/koa
  24. @vercel/nestjs
  25. @vercel/next
  26. @vercel/node
  27. @vercel/oidc
  28. @vercel/oidc-aws-credentials-provider
  29. @vercel/python
  30. @vercel/python-analysis
  31. @vercel/redwood
  32. @vercel/related-projects
  33. @vercel/remix-builder
  34. @vercel/routing-utils
  35. @vercel/ruby
  36. @vercel/rust
  37. @vercel/static-build
  38. @vercel/static-config
  39. examples

Results

  • Unit tests: Only affected packages will run unit tests
  • E2E tests: Running in parallel via E2E Tests workflow
  • Type checks: Only affected packages will run type checks

This comment is automatically generated based on the affected testing strategy

…allBuilders/untracedInstallBuilders

Co-authored-by: Cursor <[email protected]>
@mehulkar
mehulkar marked this pull request as ready for review February 17, 2026 01:18
@mehulkar
mehulkar requested review from a team as code owners February 17, 2026 01:18
@mehulkar
mehulkar requested a review from jeffsee55 February 17, 2026 01:29
@mehulkar
mehulkar requested a review from tknickman February 17, 2026 15:20
@mehulkar
mehulkar merged commit ab3e46f into main Feb 17, 2026
224 of 226 checks passed
@mehulkar
mehulkar deleted the mk/trace-install-builder branch February 17, 2026 15:25
mehulkar pushed a commit that referenced this pull request Feb 17, 2026
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>

This branch was successfully deployed

1 active deployment
Preview — e4c58a40 Deployed Feb 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants