File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change 1
1
import { supportedRuntimes } from '@netlify/framework-info'
2
+ import { addAttributesToActiveSpan } from '@netlify/opentelemetry-utils'
2
3
3
4
import { getErrorInfo } from '../error/info.js'
4
5
import { startErrorMonitor } from '../error/monitor/start.js'
@@ -458,6 +459,17 @@ const initAndRunBuild = async function ({
458
459
systemLog,
459
460
} )
460
461
462
+ if ( pluginsOptionsA ?. length ) {
463
+ const buildPlugins = { }
464
+ for ( const plugin of pluginsOptionsA ) {
465
+ if ( plugin ?. pluginPackageJson ?. name ) {
466
+ buildPlugins [ `build.plugins['${ plugin . pluginPackageJson . name } ']` ] = plugin ?. pluginPackageJson ?. version ?? 'N/A'
467
+ }
468
+ }
469
+
470
+ addAttributesToActiveSpan ( buildPlugins )
471
+ }
472
+
461
473
errorParams . pluginsOptions = pluginsOptionsA
462
474
463
475
const { childProcesses, timers : timersB } = await startPlugins ( {
You can’t perform that action at this time.
0 commit comments