Repository navigation
fix(next): count repeated server errors and explain the digest - #733
Merged
Merged
Conversation
… 1.5.1 Stop fabricating SDK stacks for browser-sanitized Script errors, rate-limit identical floods, and label them clearly in the dashboard error detail view. Co-authored-by: Cursor <[email protected]>
Co-authored-by: Cursor <[email protected]>
…-sanitized-script-error release: @telemetry-tracker/core 1.5.1 sanitized Script error. + dashboard
* fix(sdk): sanitize Script error. reporting in @telemetry-tracker/core 1.5.1 Stop fabricating SDK stacks for browser-sanitized Script errors, rate-limit identical floods, and label them clearly in the dashboard error detail view. Co-authored-by: Cursor <[email protected]> * fix(sdk): use const for sanitized Script error dedupe store Co-authored-by: Cursor <[email protected]> * docs: add Next.js server-side error capture to marketing pages (#729) - Update /error-tracking/nextjs to include server errors section - Add imports for nextEnvLocalServer and nextInstrumentation snippets - Add 'Server errors (optional)' section with instrumentation.ts setup - Update page description and lede to mention server error capture - Update howToJsonLd structured data to mention optional server setup - Update /sentry-alternative to clarify Next.js supports both client and server errors - Modify SDK description to note App Router server errors when configured - All changes use existing verified snippets from @/lib/sdk-setup-snippets - Verified against @telemetry-tracker/next 1.3.2 package source - Tests pass: pnpm test (all tests), pnpm lint, pnpm build Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: Sanja Malovic <[email protected]> --------- Co-authored-by: cursor[bot] <206951365+cursor[bot]@users.noreply.github.com> Co-authored-by: Cursor <[email protected]> Co-authored-by: Sanja Malovic <[email protected]>
Public copy now lists Slack, Discord, and Telegram incoming webhooks without claiming Teams or Power Automate. The migration page maps current SDK calls and records what does not carry over. Co-authored-by: Cursor <[email protected]>
Give the read-only role Besedolov startup timings without SELECT on Event.properties. Co-authored-by: Cursor <[email protected]>
Store monotonic clock readings as bigint so values above 9,999,999 stay readable. Co-authored-by: Cursor <[email protected]>
Gmail iOS recolors text but not CSS gradients, so the wordmark turned light on a light header. Share a solid header fill across notification and release mail. Co-authored-by: Cursor <[email protected]>
createOnRequestError was dropping later requests that reused a Next.js digest, so occurrence counts and spike alerts undercounted. Report each later request, search context.digest, and add the Server Components troubleshooting guide. Co-authored-by: Cursor <[email protected]>
Keep the 1.3.3 server reporting and guide where develop still has the earlier Next.js marketing copy.
The guide path was missing from the page map, and the source scan treats cookies() as a dynamic call. Co-authored-by: Cursor <[email protected]>
| * node scripts/measure-sdk-sizes.mjs | ||
| */ | ||
| import { createRequire } from "node:module"; | ||
| import { readdirSync, readFileSync, statSync } from "node:fs"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Base branch:
developSummary
@telemetry-tracker/next1.3.3 stopscreateOnRequestErrorfrom suppressing a Next.js digest for the life of the process. The same Error object is still reported once, and a second callback in the same turn with that digest is skipped. A later request is reported again, so occurrence counts and spike alerts are not stuck at one.messageandstackwheninstanceof Errorfails. ServeronRequestErroris documented as Next.js 15+.context.digest./error-tracking/nextjs/server-components-render-errorand reverse links from the Next.js guide,/docs/nextjs,/docs/migrate-from-sentry, and the footer./error-tracking/nextjs/source-mapsstays unlinked while it 404s.The feature commit is
6ae13c40d8921f28f4fddb374e901f865020de38. This branch also merges currentdevelop(keeping the 1.3.3 copy wheredevelopstill had the earlier Next.js marketing text) and maps the new guide in the marketing page test.Do not treat the guide as released until
@telemetry-tracker/[email protected]is the version npm returns. Publish only that package, from a taggedorigin/maincheckout, after this lands onmain.QA
records two in-flight requests with the same digest after the turn ends.WeakSet.DYNAMIC_SERVER_USAGEmatches both. The lookup is an unindexed JSON text match scoped byerror_group_id, same class of cost as event property search.@telemetry-tracker/[email protected]contains onlyLICENSE,package.json, anddist/*.dist/server.jsis 1.3.3 and uses the turn guard. Exports.and./serverload. No tests, source, or secrets.workspace:*is rewritten to^1.5.1only inside the publish tarball.How to test
pnpm lintpnpm test— API 977 passed (78 integration skipped), dashboard 200 passed, core 67, vite-plugin 14, node 27, next 15, publish-guards 17. Localpnpm --filter @telemetry-tracker/node testandnextlack a linkedvitestbin; those two suites were run with the workspace vitest binary. CI installs the bins.pnpm build— dashboard route/error-tracking/nextjs/server-components-render-erroris static.Code review (Bugbot)
/review-bugbotin Cursor (optional while the gate is paused). Ingest payload shape is unchanged; digest search is a read-path filter.Checklist
pnpm test; useRUN_DB_INTEGRATION_TESTS=true+ Postgres if API integration behavior changed)pnpm lint)pnpm build)[Unreleased](if user-facing)Security / privacy
Server reporting still strips the query string and does not forward request headers. Digest search reads
ErrorOccurrence.context, which is already stored for the project.Made with Cursor