@netlify/build 35.3.5 → 35.4.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.
@@ -1,6 +1,6 @@
1
1
  import { InputStatsDOptions } from '../report/statsd.js';
2
2
  export type Metric = {
3
- type: 'increment';
3
+ type: 'increment' | 'timing';
4
4
  name: string;
5
5
  value: number;
6
6
  tags: Record<string, string | string[]>;
@@ -105,10 +105,20 @@ const getMetrics = (manifest) => {
105
105
  }
106
106
  });
107
107
  const numUserEfs = totalEfs.length - numGenEfs;
108
- return [
108
+ const metrics = [
109
109
  { type: 'increment', name: 'buildbot.build.functions', value: numGenEfs, tags: { type: 'edge:generated' } },
110
110
  { type: 'increment', name: 'buildbot.build.functions', value: numUserEfs, tags: { type: 'edge:user' } },
111
111
  ];
112
+ const tarballDurationMs = manifest.bundling_timing?.tarball_ms;
113
+ if (typeof tarballDurationMs === 'number') {
114
+ metrics.push({
115
+ type: 'timing',
116
+ name: 'buildbot.build.edge_functions.bundling_ms',
117
+ value: tarballDurationMs,
118
+ tags: { format: 'tarball' },
119
+ });
120
+ }
121
+ return metrics;
112
122
  };
113
123
  // We run this core step if at least one of the functions directories (the
114
124
  // one configured by the user or the internal one) exists. We use a dynamic
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@netlify/build",
3
- "version": "35.3.5",
3
+ "version": "35.4.0",
4
4
  "description": "Netlify build module",
5
5
  "type": "module",
6
6
  "exports": "./lib/index.js",
@@ -70,7 +70,7 @@
70
70
  "@netlify/blobs": "^10.4.1",
71
71
  "@netlify/cache-utils": "^6.0.4",
72
72
  "@netlify/config": "^24.0.9",
73
- "@netlify/edge-bundler": "14.8.7",
73
+ "@netlify/edge-bundler": "14.9.0",
74
74
  "@netlify/functions-utils": "^6.2.14",
75
75
  "@netlify/git-utils": "^6.0.2",
76
76
  "@netlify/opentelemetry-utils": "^2.0.1",
@@ -152,5 +152,5 @@
152
152
  "engines": {
153
153
  "node": ">=18.14.0"
154
154
  },
155
- "gitHead": "a107de70cbd2216eada97610416e2c68d364c2d2"
155
+ "gitHead": "62138231cf941ffa7e3a5227be4d686a982f6e4b"
156
156
  }