@@ -164,32 +164,14 @@ export interface PlatformaticPythonConfiguration {
164164 plugins ?: {
165165 [ k : string ] : unknown ;
166166 } ;
167- metrics ?:
168- | boolean
169- | {
170- port ?: number | string ;
171- hostname ?: string ;
172- endpoint ?: string ;
173- server ?: "own" | "parent" | "hide" ;
174- defaultMetrics ?: {
175- enabled : boolean ;
176- } ;
177- auth ?: {
178- username : string ;
179- password : string ;
180- } ;
181- labels ?: {
182- [ k : string ] : string ;
183- } ;
184- } ;
185167 telemetry ?: {
186168 enabled ?: boolean | string ;
187169 /**
188- * The name of the service . Defaults to the folder name if not specified.
170+ * The name of the application . Defaults to the folder name if not specified.
189171 */
190- serviceName : string ;
172+ applicationName : string ;
191173 /**
192- * The version of the service (optional)
174+ * The version of the application (optional)
193175 */
194176 version ?: string ;
195177 /**
@@ -271,6 +253,7 @@ export interface PlatformaticPythonConfiguration {
271253 | string ;
272254 $schema ?: string ;
273255 module ?: string ;
256+ application ?: { } ;
274257 service ?: {
275258 openapi ?:
276259 | {
@@ -324,21 +307,14 @@ export interface PlatformaticPythonConfiguration {
324307 } ;
325308 } ;
326309 } ;
327- clients ?: {
328- serviceId ?: string ;
329- name ?: string ;
330- type ?: "openapi" | "graphql" ;
331- path ?: string ;
332- schema ?: string ;
333- url ?: string ;
334- fullResponse ?: boolean ;
335- fullRequest ?: boolean ;
336- validateResponse ?: boolean ;
337- } [ ] ;
338310 runtime ?: {
339311 preload ?: string | string [ ] ;
340312 basePath ?: string ;
313+ services ?: {
314+ [ k : string ] : unknown ;
315+ } [ ] ;
341316 workers ?: number | string ;
317+ workersRestartDelay ?: number | string ;
342318 logger ?: {
343319 level : (
344320 | ( "fatal" | "error" | "warn" | "info" | "debug" | "trace" | "silent" )
@@ -423,9 +399,10 @@ export interface PlatformaticPythonConfiguration {
423399 } ;
424400 startTimeout ?: number ;
425401 restartOnError ?: boolean | number ;
402+ exitOnUnhandledErrors ?: boolean ;
426403 gracefulShutdown ?: {
427404 runtime : number | string ;
428- service : number | string ;
405+ application : number | string ;
429406 } ;
430407 health ?: {
431408 enabled ?: boolean | string ;
@@ -435,7 +412,7 @@ export interface PlatformaticPythonConfiguration {
435412 maxELU ?: number | string ;
436413 maxHeapUsed ?: number | string ;
437414 maxHeapTotal ?: number | string ;
438- maxYoungGeneration ?: number ;
415+ maxYoungGeneration ?: number | string ;
439416 } ;
440417 undici ?: {
441418 agentOptions ?: {
@@ -512,6 +489,10 @@ export interface PlatformaticPythonConfiguration {
512489 labels ?: {
513490 [ k : string ] : string ;
514491 } ;
492+ /**
493+ * The label name to use for the application identifier in metrics (e.g., applicationId, serviceId)
494+ */
495+ applicationLabel ?: string ;
515496 readiness ?:
516497 | boolean
517498 | {
@@ -538,17 +519,16 @@ export interface PlatformaticPythonConfiguration {
538519 body ?: string ;
539520 } ;
540521 } ;
541- additionalProperties ?: never ;
542- [ k : string ] : unknown ;
522+ plugins ?: string [ ] ;
543523 } ;
544524 telemetry ?: {
545525 enabled ?: boolean | string ;
546526 /**
547- * The name of the service . Defaults to the folder name if not specified.
527+ * The name of the application . Defaults to the folder name if not specified.
548528 */
549- serviceName : string ;
529+ applicationName : string ;
550530 /**
551- * The version of the service (optional)
531+ * The version of the application (optional)
552532 */
553533 version ?: string ;
554534 /**
@@ -624,7 +604,8 @@ export interface PlatformaticPythonConfiguration {
624604 watchDisabled ?: boolean ;
625605 [ k : string ] : unknown ;
626606 } ;
627- serviceTimeout ?: number | string ;
607+ applicationTimeout ?: number | string ;
608+ messagingTimeout ?: number | string ;
628609 env ?: {
629610 [ k : string ] : string ;
630611 } ;
0 commit comments