Skip to content

perf: sample 10% of speed insights events - #3436

Merged
danielroe merged 1 commit into
mainfrom
perf/speed-insights
Nov 12, 2026
Merged

danielroe merged 1 commit into
mainfrom
perf/speed-insights

Conversation

@danielroe

@danielroe danielroe commented Nov 12, 2026 •

Copy link
Copy Markdown
Member

πŸ”— Linked issue

πŸ“š Description

this reduces our speed insights sampling to 10% which should reduce our bill accordingly

opened vercel/speed-insights#126 upstream to make it easier to set this without a custom plugin

@vercel

vercel Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
npmx.dev Ready Ready Preview Nov 12, 2026 11:09am UTC
2 Skipped Deployments
Project Deployment Actions Updated
docs.npmx.dev Ignored Ignored Nov 12, 2026 11:09am UTC
npmx-lunaria Ignored Ignored Nov 12, 2026 11:09am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change β†’

No actionable comments were generated in the recent review.

Summary

Summary by CodeRabbit

  • Updates
    • Vercel Speed Insights now runs with a 10% sample rate and is excluded from island-rendered content. This changes how the feature is configured across the app; no other end-user-facing changes are noted.

Speed Insights is now injected by a client-side Nuxt plugin with a sample rate of 0.1. The Nuxt modules list no longer includes @vercel/speed-insights.

Changes: Speed Insights integration

Layer / File(s) Summary
Register Speed Insights in a client plugin
nuxt.config.ts, app/plugins/vercel-speed-insights.client.ts
The Nuxt modules list no longer includes @vercel/speed-insights. A client-side plugin calls injectSpeedInsights with sampleRate: 0.1 and sets env.islands to false.

Suggested reviewers: trueberryless

Merge Risk: Minimal Β· up to caea4

This change reduces Speed Insights event sampling to 10% by registering it through a client plugin. No actionable merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title states the main change: Speed Insights events are now sampled at 10%. It is specific and matches the summary, which describes a sample rate of 0.1 in the new plugin and removal of the Vercel…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The description states that the change reduces Speed Insights sampling to 10% to lower the bill. It also links an upstream pull request that would make the sampling rate configurable without a custom …
Full details: Title check

Explanation

The title states the main change: Speed Insights events are now sampled at 10%. It is specific and matches the summary, which describes a sample rate of 0.1 in the new plugin and removal of the Vercel module from nuxt.config.ts. The "perf:" prefix is a conventional commit type and does not affect the assessment.

Full details: Description check

Explanation

The description states that the change reduces Speed Insights sampling to 10% to lower the bill. It also links an upstream pull request that would make the sampling rate configurable without a custom plugin. This matches the changeset, which adds a Nuxt plugin with a 0.1 sample rate and removes the @vercel/speed-insights module from nuxt.config.ts. The linked issue section is an unfilled template placeholder, but the check only requires that the description relates to the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR
  • Autofix Β· Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between abf8e59 and caea497.

Files selected for processing: 2

  • app/plugins/vercel-speed-insights.client.ts
  • nuxt.config.ts
Files with no reviewable changes: 1

  • nuxt.config.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 7 remain after this review.

@codecov

codecov Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

Codecov Report

βœ… All modified and coverable lines are covered by tests.
βœ… All tests successful. No failed tests found.

πŸ“’ Thoughts on this report? Let us know!

@danielroe
danielroe enabled auto-merge November 12, 2026 12:15
@danielroe
danielroe added this pull request to the merge queue Nov 12, 2026
Merged via the queue into main with commit 4b9eb84 Nov 12, 2026
29 checks passed
@danielroe
danielroe deleted the perf/speed-insights branch November 12, 2026 13:21
@github-actions github-actions Bot mentioned this pull request Nov 12, 2026

This branch was successfully deployed

1 active deployment
Preview – npmx.dev β€” caea497f Deployed Nov 12, 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