@platformatic/composer 3.33.0 → 3.34.1-alpha.3
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/config.d.ts +21 -0
- package/package.json +3 -3
- package/schema.json +32 -1
package/config.d.ts
CHANGED
|
@@ -288,6 +288,10 @@ export interface PlatformaticComposerConfig {
|
|
|
288
288
|
gracefulShutdown?: {
|
|
289
289
|
runtime: number | string;
|
|
290
290
|
application: number | string;
|
|
291
|
+
/**
|
|
292
|
+
* Add Connection: close header to HTTP responses during graceful shutdown
|
|
293
|
+
*/
|
|
294
|
+
closeConnections?: boolean;
|
|
291
295
|
};
|
|
292
296
|
health?: {
|
|
293
297
|
enabled?: boolean | string;
|
|
@@ -451,6 +455,23 @@ export interface PlatformaticComposerConfig {
|
|
|
451
455
|
*/
|
|
452
456
|
serviceVersion?: string;
|
|
453
457
|
};
|
|
458
|
+
/**
|
|
459
|
+
* Custom labels to add to HTTP metrics (http_request_all_duration_seconds). Each label extracts its value from an HTTP request header.
|
|
460
|
+
*/
|
|
461
|
+
httpCustomLabels?: {
|
|
462
|
+
/**
|
|
463
|
+
* The label name to use in metrics
|
|
464
|
+
*/
|
|
465
|
+
name: string;
|
|
466
|
+
/**
|
|
467
|
+
* The HTTP request header to extract the value from
|
|
468
|
+
*/
|
|
469
|
+
header: string;
|
|
470
|
+
/**
|
|
471
|
+
* Default value when header is missing (defaults to "unknown")
|
|
472
|
+
*/
|
|
473
|
+
default?: string;
|
|
474
|
+
}[];
|
|
454
475
|
};
|
|
455
476
|
telemetry?: {
|
|
456
477
|
enabled?: boolean | string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/composer",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.34.1-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
"json-schema-to-typescript": "^15.0.0"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@platformatic/foundation": "3.
|
|
27
|
-
"@platformatic/gateway": "3.
|
|
26
|
+
"@platformatic/foundation": "3.34.1-alpha.3",
|
|
27
|
+
"@platformatic/gateway": "3.34.1-alpha.3"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/composer/3.34.1-alpha.3.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Composer Config",
|
|
5
5
|
"type": "object",
|
|
@@ -1409,6 +1409,11 @@
|
|
|
1409
1409
|
}
|
|
1410
1410
|
],
|
|
1411
1411
|
"default": 10000
|
|
1412
|
+
},
|
|
1413
|
+
"closeConnections": {
|
|
1414
|
+
"type": "boolean",
|
|
1415
|
+
"default": true,
|
|
1416
|
+
"description": "Add Connection: close header to HTTP responses during graceful shutdown"
|
|
1412
1417
|
}
|
|
1413
1418
|
},
|
|
1414
1419
|
"default": {},
|
|
@@ -1949,6 +1954,32 @@
|
|
|
1949
1954
|
"endpoint"
|
|
1950
1955
|
],
|
|
1951
1956
|
"additionalProperties": false
|
|
1957
|
+
},
|
|
1958
|
+
"httpCustomLabels": {
|
|
1959
|
+
"type": "array",
|
|
1960
|
+
"description": "Custom labels to add to HTTP metrics (http_request_all_duration_seconds). Each label extracts its value from an HTTP request header.",
|
|
1961
|
+
"items": {
|
|
1962
|
+
"type": "object",
|
|
1963
|
+
"properties": {
|
|
1964
|
+
"name": {
|
|
1965
|
+
"type": "string",
|
|
1966
|
+
"description": "The label name to use in metrics"
|
|
1967
|
+
},
|
|
1968
|
+
"header": {
|
|
1969
|
+
"type": "string",
|
|
1970
|
+
"description": "The HTTP request header to extract the value from"
|
|
1971
|
+
},
|
|
1972
|
+
"default": {
|
|
1973
|
+
"type": "string",
|
|
1974
|
+
"description": "Default value when header is missing (defaults to \"unknown\")"
|
|
1975
|
+
}
|
|
1976
|
+
},
|
|
1977
|
+
"required": [
|
|
1978
|
+
"name",
|
|
1979
|
+
"header"
|
|
1980
|
+
],
|
|
1981
|
+
"additionalProperties": false
|
|
1982
|
+
}
|
|
1952
1983
|
}
|
|
1953
1984
|
},
|
|
1954
1985
|
"additionalProperties": false
|