@platformatic/gateway 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/config.d.ts +21 -0
- package/index.d.ts +1 -2
- package/package.json +7 -7
- package/schema.json +32 -1
package/config.d.ts
CHANGED
|
@@ -501,6 +501,10 @@ export interface PlatformaticGatewayConfig {
|
|
|
501
501
|
gracefulShutdown?: {
|
|
502
502
|
runtime: number | string;
|
|
503
503
|
application: number | string;
|
|
504
|
+
/**
|
|
505
|
+
* Add Connection: close header to HTTP responses during graceful shutdown
|
|
506
|
+
*/
|
|
507
|
+
closeConnections?: boolean;
|
|
504
508
|
};
|
|
505
509
|
health?: {
|
|
506
510
|
enabled?: boolean | string;
|
|
@@ -664,6 +668,23 @@ export interface PlatformaticGatewayConfig {
|
|
|
664
668
|
*/
|
|
665
669
|
serviceVersion?: string;
|
|
666
670
|
};
|
|
671
|
+
/**
|
|
672
|
+
* Custom labels to add to HTTP metrics (http_request_all_duration_seconds). Each label extracts its value from an HTTP request header.
|
|
673
|
+
*/
|
|
674
|
+
httpCustomLabels?: {
|
|
675
|
+
/**
|
|
676
|
+
* The label name to use in metrics
|
|
677
|
+
*/
|
|
678
|
+
name: string;
|
|
679
|
+
/**
|
|
680
|
+
* The HTTP request header to extract the value from
|
|
681
|
+
*/
|
|
682
|
+
header: string;
|
|
683
|
+
/**
|
|
684
|
+
* Default value when header is missing (defaults to "unknown")
|
|
685
|
+
*/
|
|
686
|
+
default?: string;
|
|
687
|
+
}[];
|
|
667
688
|
};
|
|
668
689
|
telemetry?: {
|
|
669
690
|
enabled?: boolean | string;
|
package/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseCapability } from '@platformatic/basic'
|
|
2
|
-
import { ConfigurationOptions } from '@platformatic/foundation'
|
|
2
|
+
import { Configuration, ConfigurationOptions } from '@platformatic/foundation'
|
|
3
3
|
import {
|
|
4
|
-
Configuration,
|
|
5
4
|
ServiceCapability,
|
|
6
5
|
Generator as ServiceGenerator,
|
|
7
6
|
PlatformaticServiceConfig,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/gateway",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.34.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"typescript": "^5.5.4",
|
|
34
34
|
"why-is-node-running": "2",
|
|
35
35
|
"ws": "^8.16.0",
|
|
36
|
-
"@platformatic/db": "3.
|
|
36
|
+
"@platformatic/db": "3.34.0"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@fastify/error": "^4.0.0",
|
|
@@ -64,11 +64,11 @@
|
|
|
64
64
|
"rfdc": "^1.3.1",
|
|
65
65
|
"semgrator": "^0.3.0",
|
|
66
66
|
"undici": "^7.0.0",
|
|
67
|
-
"@platformatic/
|
|
68
|
-
"@platformatic/
|
|
69
|
-
"@platformatic/scalar-theme": "3.
|
|
70
|
-
"@platformatic/
|
|
71
|
-
"@platformatic/
|
|
67
|
+
"@platformatic/basic": "3.34.0",
|
|
68
|
+
"@platformatic/foundation": "^3.34.0",
|
|
69
|
+
"@platformatic/scalar-theme": "3.34.0",
|
|
70
|
+
"@platformatic/telemetry": "3.34.0",
|
|
71
|
+
"@platformatic/service": "3.34.0"
|
|
72
72
|
},
|
|
73
73
|
"engines": {
|
|
74
74
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/gateway/3.34.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Gateway Config",
|
|
5
5
|
"type": "object",
|
|
@@ -2009,6 +2009,11 @@
|
|
|
2009
2009
|
}
|
|
2010
2010
|
],
|
|
2011
2011
|
"default": 10000
|
|
2012
|
+
},
|
|
2013
|
+
"closeConnections": {
|
|
2014
|
+
"type": "boolean",
|
|
2015
|
+
"default": true,
|
|
2016
|
+
"description": "Add Connection: close header to HTTP responses during graceful shutdown"
|
|
2012
2017
|
}
|
|
2013
2018
|
},
|
|
2014
2019
|
"default": {},
|
|
@@ -2549,6 +2554,32 @@
|
|
|
2549
2554
|
"endpoint"
|
|
2550
2555
|
],
|
|
2551
2556
|
"additionalProperties": false
|
|
2557
|
+
},
|
|
2558
|
+
"httpCustomLabels": {
|
|
2559
|
+
"type": "array",
|
|
2560
|
+
"description": "Custom labels to add to HTTP metrics (http_request_all_duration_seconds). Each label extracts its value from an HTTP request header.",
|
|
2561
|
+
"items": {
|
|
2562
|
+
"type": "object",
|
|
2563
|
+
"properties": {
|
|
2564
|
+
"name": {
|
|
2565
|
+
"type": "string",
|
|
2566
|
+
"description": "The label name to use in metrics"
|
|
2567
|
+
},
|
|
2568
|
+
"header": {
|
|
2569
|
+
"type": "string",
|
|
2570
|
+
"description": "The HTTP request header to extract the value from"
|
|
2571
|
+
},
|
|
2572
|
+
"default": {
|
|
2573
|
+
"type": "string",
|
|
2574
|
+
"description": "Default value when header is missing (defaults to \"unknown\")"
|
|
2575
|
+
}
|
|
2576
|
+
},
|
|
2577
|
+
"required": [
|
|
2578
|
+
"name",
|
|
2579
|
+
"header"
|
|
2580
|
+
],
|
|
2581
|
+
"additionalProperties": false
|
|
2582
|
+
}
|
|
2552
2583
|
}
|
|
2553
2584
|
},
|
|
2554
2585
|
"additionalProperties": false
|