@platformatic/foundation 3.33.0 → 3.34.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.
- package/.claude/settings.local.json +11 -0
- package/lib/schema.js +29 -0
- package/package.json +1 -1
package/lib/schema.js
CHANGED
|
@@ -995,6 +995,11 @@ export const runtimeProperties = {
|
|
|
995
995
|
{ type: 'string' }
|
|
996
996
|
],
|
|
997
997
|
default: 10000
|
|
998
|
+
},
|
|
999
|
+
closeConnections: {
|
|
1000
|
+
type: 'boolean',
|
|
1001
|
+
default: true,
|
|
1002
|
+
description: 'Add Connection: close header to HTTP responses during graceful shutdown'
|
|
998
1003
|
}
|
|
999
1004
|
},
|
|
1000
1005
|
default: {},
|
|
@@ -1270,6 +1275,30 @@ export const runtimeProperties = {
|
|
|
1270
1275
|
},
|
|
1271
1276
|
required: ['endpoint'],
|
|
1272
1277
|
additionalProperties: false
|
|
1278
|
+
},
|
|
1279
|
+
httpCustomLabels: {
|
|
1280
|
+
type: 'array',
|
|
1281
|
+
description:
|
|
1282
|
+
'Custom labels to add to HTTP metrics (http_request_all_duration_seconds). Each label extracts its value from an HTTP request header.',
|
|
1283
|
+
items: {
|
|
1284
|
+
type: 'object',
|
|
1285
|
+
properties: {
|
|
1286
|
+
name: {
|
|
1287
|
+
type: 'string',
|
|
1288
|
+
description: 'The label name to use in metrics'
|
|
1289
|
+
},
|
|
1290
|
+
header: {
|
|
1291
|
+
type: 'string',
|
|
1292
|
+
description: 'The HTTP request header to extract the value from'
|
|
1293
|
+
},
|
|
1294
|
+
default: {
|
|
1295
|
+
type: 'string',
|
|
1296
|
+
description: 'Default value when header is missing (defaults to "unknown")'
|
|
1297
|
+
}
|
|
1298
|
+
},
|
|
1299
|
+
required: ['name', 'header'],
|
|
1300
|
+
additionalProperties: false
|
|
1301
|
+
}
|
|
1273
1302
|
}
|
|
1274
1303
|
},
|
|
1275
1304
|
additionalProperties: false
|