envio 2.32.0 → 2.32.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "envio",
|
|
3
|
-
"version": "v2.32.
|
|
3
|
+
"version": "v2.32.1",
|
|
4
4
|
"description": "A latency and sync speed optimized, developer friendly blockchain data indexer.",
|
|
5
5
|
"bin": "./bin.js",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -25,10 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://envio.dev",
|
|
27
27
|
"optionalDependencies": {
|
|
28
|
-
"envio-linux-x64": "v2.32.
|
|
29
|
-
"envio-linux-arm64": "v2.32.
|
|
30
|
-
"envio-darwin-x64": "v2.32.
|
|
31
|
-
"envio-darwin-arm64": "v2.32.
|
|
28
|
+
"envio-linux-x64": "v2.32.1",
|
|
29
|
+
"envio-linux-arm64": "v2.32.1",
|
|
30
|
+
"envio-darwin-x64": "v2.32.1",
|
|
31
|
+
"envio-darwin-arm64": "v2.32.1"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@envio-dev/hypersync-client": "0.6.6",
|
package/src/Prometheus.res
CHANGED
|
@@ -653,6 +653,12 @@ module EffectQueueCount = {
|
|
|
653
653
|
~labelSchema=effectLabelsSchema,
|
|
654
654
|
)
|
|
655
655
|
|
|
656
|
+
let timeCounter = SafeCounter.makeOrThrow(
|
|
657
|
+
~name="envio_effect_queue_time",
|
|
658
|
+
~help="The time spent waiting in the rate limit queue. (milliseconds)",
|
|
659
|
+
~labelSchema=effectLabelsSchema,
|
|
660
|
+
)
|
|
661
|
+
|
|
656
662
|
let set = (~count, ~effectName) => {
|
|
657
663
|
gauge->SafeGauge.handleInt(~labels=effectName, ~value=count)
|
|
658
664
|
}
|
package/src/Prometheus.res.js
CHANGED
|
@@ -742,12 +742,15 @@ var EffectCacheInvalidationsCount = {
|
|
|
742
742
|
|
|
743
743
|
var gauge$22 = makeOrThrow$1("envio_effect_queue_count", "The number of effect calls waiting in the rate limit queue.", effectLabelsSchema);
|
|
744
744
|
|
|
745
|
+
var timeCounter$3 = makeOrThrow("envio_effect_queue_time", "The time spent waiting in the rate limit queue. (milliseconds)", effectLabelsSchema);
|
|
746
|
+
|
|
745
747
|
function set$21(count, effectName) {
|
|
746
748
|
handleInt$1(gauge$22, effectName, count);
|
|
747
749
|
}
|
|
748
750
|
|
|
749
751
|
var EffectQueueCount = {
|
|
750
752
|
gauge: gauge$22,
|
|
753
|
+
timeCounter: timeCounter$3,
|
|
751
754
|
set: set$21
|
|
752
755
|
};
|
|
753
756
|
|
|
@@ -755,7 +758,7 @@ var operationLabelsSchema = S$RescriptSchema.object(function (s) {
|
|
|
755
758
|
return s.f("operation", S$RescriptSchema.string);
|
|
756
759
|
});
|
|
757
760
|
|
|
758
|
-
var timeCounter$
|
|
761
|
+
var timeCounter$4 = makeOrThrow("envio_storage_load_time", "Processing time taken to load data from storage. (milliseconds)", operationLabelsSchema);
|
|
759
762
|
|
|
760
763
|
var sumTimeCounter$1 = makeOrThrow("envio_storage_load_sum_time", "Cumulative time spent loading data from storage during the indexing process. (milliseconds)", operationLabelsSchema);
|
|
761
764
|
|
|
@@ -784,7 +787,7 @@ function endOperation(timerRef, operation, whereSize, size) {
|
|
|
784
787
|
var operationRef = operations[operation];
|
|
785
788
|
operationRef.pendingCount = operationRef.pendingCount - 1 | 0;
|
|
786
789
|
if (operationRef.pendingCount === 0) {
|
|
787
|
-
handleInt(timeCounter$
|
|
790
|
+
handleInt(timeCounter$4, operation, Hrtime.intFromMillis(Hrtime.toMillis(Hrtime.timeSince(operationRef.timerRef))));
|
|
788
791
|
Utils.Dict.deleteInPlace(operations, operation);
|
|
789
792
|
}
|
|
790
793
|
handleInt(sumTimeCounter$1, operation, Hrtime.intFromMillis(Hrtime.toMillis(Hrtime.timeSince(timerRef))));
|
|
@@ -795,7 +798,7 @@ function endOperation(timerRef, operation, whereSize, size) {
|
|
|
795
798
|
|
|
796
799
|
var StorageLoad = {
|
|
797
800
|
operationLabelsSchema: operationLabelsSchema,
|
|
798
|
-
timeCounter: timeCounter$
|
|
801
|
+
timeCounter: timeCounter$4,
|
|
799
802
|
sumTimeCounter: sumTimeCounter$1,
|
|
800
803
|
counter: counter$7,
|
|
801
804
|
whereSizeCounter: whereSizeCounter,
|
package/src/bindings/Hrtime.res
CHANGED
|
@@ -39,6 +39,10 @@ function floatFromMillis(prim) {
|
|
|
39
39
|
return prim;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
+
function millisBetween(from, to) {
|
|
43
|
+
return (toMillis(to) | 0) - (toMillis(from) | 0) | 0;
|
|
44
|
+
}
|
|
45
|
+
|
|
42
46
|
function makeTimer(prim) {
|
|
43
47
|
return process.hrtime();
|
|
44
48
|
}
|
|
@@ -63,4 +67,5 @@ exports.intFromMillis = intFromMillis;
|
|
|
63
67
|
exports.intFromNanos = intFromNanos;
|
|
64
68
|
exports.intFromSeconds = intFromSeconds;
|
|
65
69
|
exports.floatFromMillis = floatFromMillis;
|
|
70
|
+
exports.millisBetween = millisBetween;
|
|
66
71
|
/* No side effect */
|