@platformatic/runtime 3.71.0 → 3.72.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/.gitignore +3 -0
- package/.npmignore +2 -0
- package/lib/runtime.js +15 -2
- package/package.json +20 -20
- package/schema.json +1 -1
package/.gitignore
ADDED
package/.npmignore
ADDED
package/lib/runtime.js
CHANGED
|
@@ -994,7 +994,13 @@ export class Runtime extends EventEmitter {
|
|
|
994
994
|
|
|
995
995
|
if (!allWorkers || hasWorkerIndex(id)) {
|
|
996
996
|
const service = await this.#getApplicationWorkerForProfiling(id, ensureStarted)
|
|
997
|
-
|
|
997
|
+
const nodeModulesSourceMaps = profilingOptions.nodeModulesSourceMaps ??
|
|
998
|
+
service[kConfig].nodeModulesSourceMaps ?? this.#config.nodeModulesSourceMaps
|
|
999
|
+
|
|
1000
|
+
return sendViaITC(service, 'startProfiling', {
|
|
1001
|
+
...profilingOptions,
|
|
1002
|
+
nodeModulesSourceMaps
|
|
1003
|
+
})
|
|
998
1004
|
}
|
|
999
1005
|
|
|
1000
1006
|
const started = []
|
|
@@ -1003,7 +1009,14 @@ export class Runtime extends EventEmitter {
|
|
|
1003
1009
|
|
|
1004
1010
|
for (const { workerIndex, worker } of await this.#getApplicationWorkersForProfiling(id, ensureStarted)) {
|
|
1005
1011
|
try {
|
|
1006
|
-
|
|
1012
|
+
const nodeModulesSourceMaps = profilingOptions.nodeModulesSourceMaps ??
|
|
1013
|
+
worker[kConfig].nodeModulesSourceMaps ??
|
|
1014
|
+
this.#config.nodeModulesSourceMaps
|
|
1015
|
+
|
|
1016
|
+
await sendViaITC(worker, 'startProfiling', {
|
|
1017
|
+
...profilingOptions,
|
|
1018
|
+
nodeModulesSourceMaps
|
|
1019
|
+
})
|
|
1007
1020
|
started.push(workerIndex)
|
|
1008
1021
|
} catch (error) {
|
|
1009
1022
|
// A worker which is already being profiled is considered covered, but
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@platformatic/runtime",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.72.0",
|
|
4
4
|
"description": "Platformatic runtime",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -15,10 +15,18 @@
|
|
|
15
15
|
},
|
|
16
16
|
"homepage": "https://github.com/platformatic/platformatic#readme",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@fastify/compress": "^
|
|
18
|
+
"@fastify/compress": "^9.0.0",
|
|
19
19
|
"@fastify/express": "^4.0.0",
|
|
20
20
|
"@fastify/formbody": "^8.0.0",
|
|
21
21
|
"@opentelemetry/sdk-metrics": "^2.8.0",
|
|
22
|
+
"@platformatic/composer": "3.72.0",
|
|
23
|
+
"@platformatic/db": "3.72.0",
|
|
24
|
+
"@platformatic/gateway": "3.72.0",
|
|
25
|
+
"@platformatic/node": "3.72.0",
|
|
26
|
+
"@platformatic/service": "3.72.0",
|
|
27
|
+
"@platformatic/sql-graphql": "3.72.0",
|
|
28
|
+
"@platformatic/sql-mapper": "3.72.0",
|
|
29
|
+
"@platformatic/wattpm-pprof-capture": "3.72.0",
|
|
22
30
|
"@sentry/node": "^10.58.0",
|
|
23
31
|
"atomic-sleep": "^1.0.0",
|
|
24
32
|
"autocannon": "^8.0.0",
|
|
@@ -38,15 +46,7 @@
|
|
|
38
46
|
"tstyche": "^7.0.0",
|
|
39
47
|
"typescript": "~6.0.3",
|
|
40
48
|
"undici-oidc-interceptor": "^0.9.0",
|
|
41
|
-
"why-is-node-running": "^2.2.2"
|
|
42
|
-
"@platformatic/composer": "3.71.0",
|
|
43
|
-
"@platformatic/db": "3.71.0",
|
|
44
|
-
"@platformatic/gateway": "3.71.0",
|
|
45
|
-
"@platformatic/service": "3.71.0",
|
|
46
|
-
"@platformatic/node": "3.71.0",
|
|
47
|
-
"@platformatic/sql-graphql": "3.71.0",
|
|
48
|
-
"@platformatic/wattpm-pprof-capture": "3.71.0",
|
|
49
|
-
"@platformatic/sql-mapper": "3.71.0"
|
|
49
|
+
"why-is-node-running": "^2.2.2"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@fastify/accepts": "^5.0.0",
|
|
@@ -54,8 +54,15 @@
|
|
|
54
54
|
"@fastify/error": "^4.0.0",
|
|
55
55
|
"@fastify/websocket": "^11.0.0",
|
|
56
56
|
"@opentelemetry/api": "^1.9.0",
|
|
57
|
-
"@opentelemetry/exporter-metrics-otlp-proto": "^0.
|
|
57
|
+
"@opentelemetry/exporter-metrics-otlp-proto": "^0.223.0",
|
|
58
|
+
"@platformatic/basic": "3.72.0",
|
|
59
|
+
"@platformatic/foundation": "3.72.0",
|
|
60
|
+
"@platformatic/generators": "3.72.0",
|
|
61
|
+
"@platformatic/globals": "3.72.0",
|
|
62
|
+
"@platformatic/itc": "3.72.0",
|
|
63
|
+
"@platformatic/metrics": "3.72.0",
|
|
58
64
|
"@platformatic/prom-client": "^1.0.0",
|
|
65
|
+
"@platformatic/telemetry": "3.72.0",
|
|
59
66
|
"@platformatic/undici-cache-memory": "^0.9.0",
|
|
60
67
|
"@watchable/unpromise": "^1.0.2",
|
|
61
68
|
"change-case-all": "^2.1.0",
|
|
@@ -76,14 +83,7 @@
|
|
|
76
83
|
"systeminformation": "^5.27.11",
|
|
77
84
|
"undici": "^7.27.2",
|
|
78
85
|
"undici-thread-interceptor": "^1.3.1",
|
|
79
|
-
"ws": "^8.16.0"
|
|
80
|
-
"@platformatic/foundation": "3.71.0",
|
|
81
|
-
"@platformatic/generators": "3.71.0",
|
|
82
|
-
"@platformatic/basic": "3.71.0",
|
|
83
|
-
"@platformatic/globals": "3.71.0",
|
|
84
|
-
"@platformatic/metrics": "3.71.0",
|
|
85
|
-
"@platformatic/itc": "3.71.0",
|
|
86
|
-
"@platformatic/telemetry": "3.71.0"
|
|
86
|
+
"ws": "^8.16.0"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=22.19.0"
|
package/schema.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.
|
|
2
|
+
"$id": "https://schemas.platformatic.dev/@platformatic/runtime/3.72.0.json",
|
|
3
3
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
4
4
|
"title": "Platformatic Runtime Config",
|
|
5
5
|
"type": "object",
|