Unverified Commit 74f99c9a authored by mknichel's avatar mknichel Committed by GitHub

[.next/trace] Add tags for webpack build worker (#57818)

This PR adds a tag to the `next-build` span to identify whether the build is using the webpack build workers and/or has a custom webpack config which can be used during debugging traces.

![Screenshot 2023-10-31 at 8 11 37 AM](https://github.com/vercel/next.js/assets/7355009/6ef028e0-36d6-4d0d-a9a8-bf40bde3d19c)
parent c90c75fa
...@@ -1070,6 +1070,11 @@ export default async function build( ...@@ -1070,6 +1070,11 @@ export default async function build(
// has a custom webpack config and disable the build worker by default. // has a custom webpack config and disable the build worker by default.
const useBuildWorker = const useBuildWorker =
config.experimental.webpackBuildWorker || !config.webpack config.experimental.webpackBuildWorker || !config.webpack
nextBuildSpan.setAttribute(
'has-custom-webpack-config',
String(!!config.webpack)
)
nextBuildSpan.setAttribute('use-build-worker', String(useBuildWorker))
if ( if (
config.webpack && config.webpack &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment