@sentio/runtime 2.57.9-rc.9 → 2.57.9

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/index.d.ts CHANGED
@@ -484,6 +484,7 @@ interface ExecutionConfig_DecoderWorkerConfig {
484
484
  enabled: boolean;
485
485
  workerCount?: number | undefined;
486
486
  skipWhenDecodeFailed?: boolean | undefined;
487
+ recordTiming?: boolean | undefined;
487
488
  }
488
489
  declare const ExecutionConfig_DecoderWorkerConfig: {
489
490
  encode(message: ExecutionConfig_DecoderWorkerConfig, writer?: _m0.Writer): _m0.Writer;
@@ -633,6 +634,11 @@ declare const processMetrics: {
633
634
  processor_rpc_duration: H;
634
635
  processor_rpc_queue_duration: H;
635
636
  processor_template_instance_count: C;
637
+ processor_worker_run_time: G;
638
+ processor_worker_wait_time: G;
639
+ processor_worker_utilization: G;
640
+ processor_worker_queue_size: G;
641
+ processor_worker_completed: G;
636
642
  stats(): {
637
643
  process_binding_count: number;
638
644
  process_binding_time: number;
@@ -647,6 +653,11 @@ declare const processMetrics: {
647
653
  processor_rpc_duration: number;
648
654
  processor_rpc_queue_duration: number;
649
655
  processor_template_instance_count: number;
656
+ processor_worker_run_time: number;
657
+ processor_worker_wait_time: number;
658
+ processor_worker_utilization: number;
659
+ processor_worker_queue_size: number;
660
+ processor_worker_completed: number;
650
661
  };
651
662
  };
652
663
  declare const metricsStorage: AsyncLocalStorage<string>;
package/lib/index.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { createRequire as createRequireShim } from 'module'; const require = createRequireShim(import.meta.url);
2
- import{$ as O,A as p,X as N,Y as C,Z as V,_ as w,aa as A,ca as I,da as M,ea as b,fa as y,i as u,j as c,m as T,n as m,o as h,p as l,q as f,r as x,s as d}from"./chunk-RNU2NHS2.js";var r=class e{stateMap=new Map;static INSTANCE=new e;static reset(){e.INSTANCE=new e}},i=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=r.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),r.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=r.INSTANCE.stateMap.get(this.key());return r.INSTANCE.stateMap.delete(this.key()),t}},a=class extends i{initValue(){return new Map}getValue(t){return this.getOrRegister().get(t)}getValues(){let t=this.getOrRegister();return Array.from(t.values())}getOrSetValue(t,s){let o=this.getOrRegister(),n=o.get(t);return n?(n!==s&&console.warn(t,"has been registered twice, use the previous one"),n):(o.set(t,s),s)}},g=class extends i{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));export{I as DummyProvider,d as Endpoints,p as GLOBAL_CONFIG,g as ListStateStorage,a as MapStateStorage,u as Plugin,c as PluginManager,y as ProcessorServiceImpl,b as QueuedStaticJsonRpcProvider,r as State,i as StateStorage,A as StoreContext,h as USER_PROCESSOR,x as compareSemver,N as dbMetrics,m as errorString,M as getProvider,l as makeEthCallKey,T as mergeProcessResults,w as metricsStorage,f as parseSemver,V as processMetrics,C as providerMetrics,O as timeoutError};
2
+ import{$ as O,A as p,X as N,Y as C,Z as V,_ as w,aa as A,ca as I,da as M,ea as b,fa as y,i as u,j as c,m as T,n as m,o as h,p as l,q as f,r as x,s as d}from"./chunk-TTE5MQNI.js";var r=class e{stateMap=new Map;static INSTANCE=new e;static reset(){e.INSTANCE=new e}},i=class{constructor(){}key(){return this.constructor.name}getOrRegister(){let t=r.INSTANCE.stateMap.get(this.key());return t||(t=this.initValue(),r.INSTANCE.stateMap.set(this.key(),t)),t}unregister(){let t=r.INSTANCE.stateMap.get(this.key());return r.INSTANCE.stateMap.delete(this.key()),t}},a=class extends i{initValue(){return new Map}getValue(t){return this.getOrRegister().get(t)}getValues(){let t=this.getOrRegister();return Array.from(t.values())}getOrSetValue(t,s){let o=this.getOrRegister(),n=o.get(t);return n?(n!==s&&console.warn(t,"has been registered twice, use the previous one"),n):(o.set(t,s),s)}},g=class extends i{initValue(){return[]}getValues(){return this.getOrRegister()}addValue(t){return this.getOrRegister().push(t),t}};import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));import("node:process").then(e=>e.stdout.write(""));export{I as DummyProvider,d as Endpoints,p as GLOBAL_CONFIG,g as ListStateStorage,a as MapStateStorage,u as Plugin,c as PluginManager,y as ProcessorServiceImpl,b as QueuedStaticJsonRpcProvider,r as State,i as StateStorage,A as StoreContext,h as USER_PROCESSOR,x as compareSemver,N as dbMetrics,m as errorString,M as getProvider,l as makeEthCallKey,T as mergeProcessResults,w as metricsStorage,f as parseSemver,V as processMetrics,C as providerMetrics,O as timeoutError};
3
3
  //# sourceMappingURL=index.js.map