@sentio/runtime 2.44.2 → 2.44.3-rc.10
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/lib/chunk-IOO4AJPJ.js +131 -0
- package/lib/chunk-IOO4AJPJ.js.map +1 -0
- package/lib/index.d.ts +118 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/processor-runner.js +47 -47
- package/lib/processor-runner.js.map +1 -1
- package/package.json +3 -4
- package/src/index.ts +1 -0
- package/src/metrics.ts +9 -1
- package/src/processor-runner.ts +0 -1
- package/lib/chunk-OIJYNZ76.js +0 -131
- package/lib/chunk-OIJYNZ76.js.map +0 -1
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@sentio/runtime",
|
3
|
-
"version": "2.44.
|
3
|
+
"version": "2.44.3-rc.10",
|
4
4
|
"license": "Apache-2.0",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -19,11 +19,10 @@
|
|
19
19
|
"@types/command-line-args": "^5.2.3",
|
20
20
|
"@types/command-line-usage": "^5.0.4",
|
21
21
|
"@types/fs-extra": "^11.0.4",
|
22
|
-
"@types/google-protobuf": "^3.15.12"
|
23
|
-
"tslib": "^2.6.2"
|
22
|
+
"@types/google-protobuf": "^3.15.12"
|
24
23
|
},
|
25
24
|
"engines": {
|
26
|
-
"node": ">=
|
25
|
+
"node": ">=20"
|
27
26
|
},
|
28
27
|
"scripts": {
|
29
28
|
"build": "pnpm tsc --noEmit && pnpm bundle",
|
package/src/index.ts
CHANGED
package/src/metrics.ts
CHANGED
@@ -138,11 +138,19 @@ export const processMetrics = {
|
|
138
138
|
process_binding_count: new C('process_binding_count'),
|
139
139
|
process_binding_time: new C('process_binding_time'),
|
140
140
|
process_binding_error: new C('process_binding_error'),
|
141
|
+
process_ethcall_count: new C('process_ethcall_count'),
|
142
|
+
process_eventemit_count: new C('process_eventemit_count'),
|
143
|
+
process_metricrecord_count: new C('process_metricrecord_count'),
|
144
|
+
process_pricecall_count: new C('process_pricecall_count'),
|
141
145
|
stats() {
|
142
146
|
return {
|
143
147
|
process_binding_count: this.process_binding_count.get(),
|
144
148
|
process_binding_time: this.process_binding_time.get(),
|
145
|
-
process_binding_error: this.process_binding_error.get()
|
149
|
+
process_binding_error: this.process_binding_error.get(),
|
150
|
+
process_ethcall_count: this.process_ethcall_count.get(),
|
151
|
+
process_eventemit_count: this.process_eventemit_count.get(),
|
152
|
+
process_metricrecord_count: this.process_metricrecord_count.get(),
|
153
|
+
process_pricecall_count: this.process_pricecall_count.get()
|
146
154
|
}
|
147
155
|
}
|
148
156
|
}
|
package/src/processor-runner.ts
CHANGED
@@ -9,7 +9,6 @@ import { createServer } from 'nice-grpc'
|
|
9
9
|
import { errorDetailsServerMiddleware } from 'nice-grpc-error-details'
|
10
10
|
// import { registry as niceGrpcRegistry } from 'nice-grpc-prometheus'
|
11
11
|
import { openTelemetryServerMiddleware } from 'nice-grpc-opentelemetry'
|
12
|
-
// import { register as globalRegistry, Registry } from 'prom-client'
|
13
12
|
import http from 'http'
|
14
13
|
// @ts-ignore inspector promises is not included in @type/node
|
15
14
|
import { Session } from 'node:inspector/promises'
|