@platformatic/basic 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/config.d.ts +4 -0
- package/lib/capability.js +5 -0
- package/package.json +7 -7
- package/schema.json +21 -1
package/config.d.ts
CHANGED
package/lib/capability.js
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
ensureMetricsGroup,
|
|
15
15
|
setupOtlpExporter
|
|
16
16
|
} from '@platformatic/metrics'
|
|
17
|
+
import { addPinoInstrumentation } from '@platformatic/telemetry'
|
|
17
18
|
import { parseCommandString } from 'execa'
|
|
18
19
|
import { spawn } from 'node:child_process'
|
|
19
20
|
import { tracingChannel } from 'node:diagnostics_channel'
|
|
@@ -709,6 +710,10 @@ export class BaseCapability extends EventEmitter {
|
|
|
709
710
|
this.root
|
|
710
711
|
)
|
|
711
712
|
|
|
713
|
+
if (loggerOptions.openTelemetryExporter && this.telemetryConfig?.enabled !== false) {
|
|
714
|
+
addPinoInstrumentation(pinoOptions)
|
|
715
|
+
}
|
|
716
|
+
|
|
712
717
|
return pino(pinoOptions, this.standardStreams?.stdout)
|
|
713
718
|
}
|
|
714
719
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/basic",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.39.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"types": "index.d.ts",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
"split2": "^4.2.0",
|
|
26
26
|
"undici": "^7.0.0",
|
|
27
27
|
"ws": "^8.18.0",
|
|
28
|
-
"@platformatic/
|
|
29
|
-
"@platformatic/
|
|
30
|
-
"@platformatic/
|
|
31
|
-
"@platformatic/
|
|
28
|
+
"@platformatic/foundation": "3.39.0",
|
|
29
|
+
"@platformatic/metrics": "3.39.0",
|
|
30
|
+
"@platformatic/itc": "3.39.0",
|
|
31
|
+
"@platformatic/telemetry": "3.39.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"cleaner-spec-reporter": "^0.5.0",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"node": ">=22.19.0"
|
|
49
49
|
},
|
|
50
50
|
"scripts": {
|
|
51
|
-
"test:
|
|
52
|
-
"test
|
|
51
|
+
"test": "npm run test:types && node --test --test-reporter=cleaner-spec-reporter --test-concurrency=1 --test-timeout=2000000 test/*.test.js test/**/*.test.js",
|
|
52
|
+
"test:types": "tsd",
|
|
53
53
|
"gen-schema": "node lib/schema.js > schema.json",
|
|
54
54
|
"gen-types": "json2ts > config.d.ts < schema.json",
|
|
55
55
|
"build": "npm run gen-schema && npm run gen-types",
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/basic/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/basic/3.39.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Basic Config",
|
|
5
5
|
"type": "object",
|
|
@@ -577,6 +577,26 @@
|
|
|
577
577
|
"customLevels": {
|
|
578
578
|
"type": "object",
|
|
579
579
|
"additionalProperties": true
|
|
580
|
+
},
|
|
581
|
+
"openTelemetryExporter": {
|
|
582
|
+
"type": "object",
|
|
583
|
+
"properties": {
|
|
584
|
+
"protocol": {
|
|
585
|
+
"type": "string",
|
|
586
|
+
"enum": [
|
|
587
|
+
"grpc",
|
|
588
|
+
"http"
|
|
589
|
+
]
|
|
590
|
+
},
|
|
591
|
+
"url": {
|
|
592
|
+
"type": "string"
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
"required": [
|
|
596
|
+
"protocol",
|
|
597
|
+
"url"
|
|
598
|
+
],
|
|
599
|
+
"additionalProperties": false
|
|
580
600
|
}
|
|
581
601
|
},
|
|
582
602
|
"default": {},
|