From 0e678db5003adc476440cfd82007ad9398f8de9e Mon Sep 17 00:00:00 2001 From: Tim Neutkens Date: Wed, 24 Aug 2022 12:29:47 +0200 Subject: [PATCH] Add path to export-page (#39893) Adds a missing tag in the trace-to-tree helper that allows you to see the path of the `export-page` span. ## Bug - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Errors have helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The examples guidelines are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing.md#adding-examples) --- scripts/trace-to-tree.mjs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/trace-to-tree.mjs b/scripts/trace-to-tree.mjs index 0973a06c2711..7086f4bbcb49 100644 --- a/scripts/trace-to-tree.mjs +++ b/scripts/trace-to-tree.mjs @@ -127,6 +127,9 @@ const formatEvent = (event) => { case 'hot-reloader': head = `${chalk.bold.green(`hot reloader`)}` break + case 'export-page': + head = `${event.name} ${event.tags.path} ${formatTimes(event)}` + break default: if (event.name.startsWith('build-module-')) { const { mergedChildren, childrenTimings, packageName } = event