@platformatic/foundation 3.38.0 → 3.39.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/index.d.ts CHANGED
@@ -250,7 +250,7 @@ export declare const fastifyServer: JSONSchemaType<object>
250
250
  export declare const undiciInterceptor: JSONSchemaType<object>
251
251
  export declare const health: JSONSchemaType<object>
252
252
  export declare const healthWithoutDefaults: JSONSchemaType<object>
253
- export declare const telemetryExporter: JSONSchemaType<object>
253
+ export declare const openTelemetryExporter: JSONSchemaType<object>
254
254
  export declare const telemetry: JSONSchemaType<object>
255
255
  export declare const applications: JSONSchemaType<object[]>
256
256
  export declare const runtimeUnwrappablePropertiesList: string[]
package/lib/schema.js CHANGED
@@ -333,9 +333,22 @@ export const logger = {
333
333
  customLevels: {
334
334
  type: 'object',
335
335
  additionalProperties: true
336
+ },
337
+ openTelemetryExporter: {
338
+ type: 'object',
339
+ properties: {
340
+ protocol: {
341
+ type: 'string',
342
+ enum: ['grpc', 'http']
343
+ },
344
+ url: {
345
+ type: 'string'
346
+ }
347
+ },
348
+ required: ['protocol', 'url'],
349
+ additionalProperties: false
336
350
  }
337
351
  },
338
-
339
352
  default: {},
340
353
  additionalProperties: true
341
354
  }
@@ -612,7 +625,7 @@ export const health = {
612
625
 
613
626
  export const healthWithoutDefaults = removeDefaults(health)
614
627
 
615
- export const telemetryExporter = {
628
+ export const openTelemetryExporter = {
616
629
  type: 'object',
617
630
  properties: {
618
631
  type: {
@@ -686,9 +699,9 @@ export const telemetry = {
686
699
  anyOf: [
687
700
  {
688
701
  type: 'array',
689
- items: telemetryExporter
702
+ items: openTelemetryExporter
690
703
  },
691
- telemetryExporter
704
+ openTelemetryExporter
692
705
  ]
693
706
  }
694
707
  },
@@ -1077,7 +1090,8 @@ export const runtimeProperties = {
1077
1090
  items: {
1078
1091
  type: 'string'
1079
1092
  },
1080
- description: 'Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\\\/\\\\/.*\\\\.example\\\\.com/").'
1093
+ description:
1094
+ 'Whitelist of origins to cache. Supports exact strings and regex patterns (e.g., "/https:\\\\/\\\\/.*\\\\.example\\\\.com/").'
1081
1095
  },
1082
1096
  cacheByDefault: {
1083
1097
  type: 'integer',
@@ -1123,7 +1137,8 @@ export const runtimeProperties = {
1123
1137
  },
1124
1138
  socket: {
1125
1139
  type: 'string',
1126
- description: 'Custom path for the control socket. If not specified, uses the default platform-specific location.'
1140
+ description:
1141
+ 'Custom path for the control socket. If not specified, uses the default platform-specific location.'
1127
1142
  }
1128
1143
  },
1129
1144
  additionalProperties: false
@@ -1474,7 +1489,7 @@ export const schemaComponents = {
1474
1489
  undiciInterceptor,
1475
1490
  health,
1476
1491
  healthWithoutDefaults,
1477
- telemetryExporter,
1492
+ openTelemetryExporter,
1478
1493
  telemetry,
1479
1494
  policies,
1480
1495
  compileCache,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@platformatic/foundation",
3
- "version": "3.38.0",
3
+ "version": "3.39.0",
4
4
  "description": "Platformatic Foundation",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",