@netlify/build 29.40.0 → 29.41.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/core/build.js +10 -0
  2. package/package.json +5 -5
package/lib/core/build.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { supportedRuntimes } from '@netlify/framework-info';
2
+ import { addAttributesToActiveSpan } from '@netlify/opentelemetry-utils';
2
3
  import { getErrorInfo } from '../error/info.js';
3
4
  import { startErrorMonitor } from '../error/monitor/start.js';
4
5
  import { getBufferLogs, getSystemLogger } from '../log/logger.js';
@@ -276,6 +277,15 @@ const initAndRunBuild = async function ({ pluginsOptions, netlifyConfig, configO
276
277
  context,
277
278
  systemLog,
278
279
  });
280
+ if (pluginsOptionsA?.length) {
281
+ const buildPlugins = {};
282
+ for (const plugin of pluginsOptionsA) {
283
+ if (plugin?.pluginPackageJson?.name) {
284
+ buildPlugins[`build.plugins['${plugin.pluginPackageJson.name}']`] = plugin?.pluginPackageJson?.version ?? 'N/A';
285
+ }
286
+ }
287
+ addAttributesToActiveSpan(buildPlugins);
288
+ }
279
289
  errorParams.pluginsOptions = pluginsOptionsA;
280
290
  const { childProcesses, timers: timersB } = await startPlugins({
281
291
  pluginsOptions: pluginsOptionsA,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "29.40.0",
3
+ "version": "29.41.0",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -70,12 +70,12 @@
70
70
  "@bugsnag/js": "^7.0.0",
71
71
  "@netlify/blobs": "^7.3.0",
72
72
  "@netlify/cache-utils": "^5.1.5",
73
- "@netlify/config": "^20.12.1",
74
- "@netlify/edge-bundler": "11.4.0",
73
+ "@netlify/config": "^20.12.2",
74
+ "@netlify/edge-bundler": "12.0.0",
75
75
  "@netlify/framework-info": "^9.8.11",
76
76
  "@netlify/functions-utils": "^5.2.54",
77
77
  "@netlify/git-utils": "^5.1.1",
78
- "@netlify/opentelemetry-utils": "^1.1.0",
78
+ "@netlify/opentelemetry-utils": "^1.2.0",
79
79
  "@netlify/plugins-list": "^6.77.0",
80
80
  "@netlify/run-utils": "^5.1.1",
81
81
  "@netlify/zip-it-and-ship-it": "9.31.3",
@@ -165,5 +165,5 @@
165
165
  "engines": {
166
166
  "node": "^14.16.0 || >=16.0.0"
167
167
  },
168
- "gitHead": "f4914c535e667addf543117d17d9b1c78b162081"
168
+ "gitHead": "cf765526c7970810cc1812ac0b2b3d9bb11ea926"
169
169
  }