@@ -19,7 +19,7 @@ export function registerCounter(
1919  name : string , 
2020  help  =  "help" , 
2121  labelNames : string [ ]  =  [ ] , 
22-   config ?: CounterConfiguration < string > 
22+   config ?: CounterConfiguration < string > , 
2323) : Counter  |  undefined  { 
2424  try  { 
2525    const  metric  =  registry . getSingleMetric ( name ) ; 
@@ -37,7 +37,7 @@ export function registerGauge(
3737  name : string , 
3838  help  =  "help" , 
3939  labelNames : string [ ]  =  [ ] , 
40-   config ?: GaugeConfiguration < string > 
40+   config ?: GaugeConfiguration < string > , 
4141) : Gauge  |  undefined  { 
4242  try  { 
4343    const  metric  =  registry . getSingleMetric ( name ) ; 
@@ -57,7 +57,7 @@ export function registerSummary(
5757  name : string , 
5858  help  =  "help" , 
5959  labelNames : string [ ]  =  [ ] , 
60-   config ?: SummaryConfiguration < string > 
60+   config ?: SummaryConfiguration < string > , 
6161) : Summary  |  undefined  { 
6262  try  { 
6363    const  metric  =  registry . getSingleMetric ( name ) ; 
@@ -75,7 +75,7 @@ export function registerHistogram(
7575  name : string , 
7676  help  =  "help" , 
7777  labelNames : string [ ]  =  [ ] , 
78-   config ?: HistogramConfiguration < string > 
78+   config ?: HistogramConfiguration < string > , 
7979) : Histogram  |  undefined  { 
8080  try  { 
8181    const  metric  =  registry . getSingleMetric ( name ) ; 
@@ -84,7 +84,7 @@ export function registerHistogram(
8484    } 
8585
8686    registry . registerMetric ( 
87-       new  Histogram ( {  name,  help,  labelNames,  ...config  } ) 
87+       new  Histogram ( {  name,  help,  labelNames,  ...config  } ) , 
8888    ) ; 
8989    return  registry . getSingleMetric ( name )  as  Histogram ; 
9090  }  catch  ( e )  { 
@@ -110,25 +110,25 @@ function calculateHeadBlockTimeDrift(clock: Clock) {
110110export  const  substreams_sink_progress_message  =  registerCounter ( 
111111  "substreams_sink_progress_message" , 
112112  "The number of progress message received" , 
113-   [ "module" ,  ...DEFAULT_LABEL_NAMES ] 
113+   [ "module" ,  ...DEFAULT_LABEL_NAMES ] , 
114114) ; 
115115
116116const  substreams_sink_data_message  =  registerCounter ( 
117117  "substreams_sink_data_message" , 
118118  "The number of data message received" , 
119-   DEFAULT_LABEL_NAMES 
119+   DEFAULT_LABEL_NAMES , 
120120) ; 
121121
122122const  substreams_sink_data_message_size_bytes  =  registerCounter ( 
123123  "substreams_sink_data_message_size_bytes" , 
124124  "The total size of in bytes of all data message received" , 
125-   DEFAULT_LABEL_NAMES 
125+   DEFAULT_LABEL_NAMES , 
126126) ; 
127127
128128const  substreams_sink_undo_message  =  registerCounter ( 
129129  "substreams_sink_undo_message" , 
130130  "The number of block undo message received" , 
131-   DEFAULT_LABEL_NAMES 
131+   DEFAULT_LABEL_NAMES , 
132132) ; 
133133
134134// ------------------------------------------------------------------ 
@@ -138,25 +138,25 @@ const substreams_sink_undo_message = registerCounter(
138138const  substreams_sink_backprocessing_completion  =  registerGauge ( 
139139  "substreams_sink_backprocessing_completion" , 
140140  "Determines if backprocessing is completed, which is if we receive a first data message" , 
141-   DEFAULT_LABEL_NAMES 
141+   DEFAULT_LABEL_NAMES , 
142142) ; 
143143
144144const  head_block_number  =  registerGauge ( 
145145  "head_block_number" , 
146146  "Last processed block number" , 
147-   DEFAULT_LABEL_NAMES 
147+   DEFAULT_LABEL_NAMES , 
148148) ; 
149149
150150const  head_block_time_drift  =  registerGauge ( 
151151  "head_block_time_drift" , 
152152  "Head block time drift in seconds" , 
153-   DEFAULT_LABEL_NAMES 
153+   DEFAULT_LABEL_NAMES , 
154154) ; 
155155
156156const  head_block_timestamp  =  registerGauge ( 
157157  "head_block_timestamp" , 
158158  "Head block timestamp" , 
159-   DEFAULT_LABEL_NAMES 
159+   DEFAULT_LABEL_NAMES , 
160160) ; 
161161
162162const  manifest  =  registerGauge ( 
@@ -168,7 +168,7 @@ const manifest = registerGauge(
168168    "stop_block_num" , 
169169    "final_blocks_only" , 
170170    ...DEFAULT_LABEL_NAMES , 
171-   ] 
171+   ] , 
172172) ; 
173173
174174// ------------------------------------------------------------------ 
@@ -179,7 +179,7 @@ export function onPrometheusMetrics(
179179    substreamsEndpoint : string ; 
180180    contractAddress : string ; 
181181    moduleHash : string ; 
182-   } 
182+   } , 
183183)  { 
184184  manifest ?. set ( 
185185    { 
@@ -191,7 +191,7 @@ export function onPrometheusMetrics(
191191      contract_address : options . contractAddress , 
192192      output_module : emitter . request . outputModule , 
193193    } , 
194-     1 
194+     1 , 
195195  ) ; 
196196
197197  emitter . on ( "session" ,  ( session )  =>  { 
@@ -213,7 +213,7 @@ export function onPrometheusMetrics(
213213        contract_address : options . contractAddress , 
214214        output_module : emitter . request . outputModule , 
215215      } , 
216-       1 
216+       1 , 
217217    ) ; 
218218  } ) ; 
219219
@@ -224,7 +224,7 @@ export function onPrometheusMetrics(
224224        contract_address : options . contractAddress , 
225225        output_module : emitter . request . outputModule , 
226226      } ) 
227-       . inc ( 1 ) 
227+       . inc ( 1 ) , 
228228  ) ; 
229229
230230  emitter . on ( "block" ,  ( block )  =>  { 
@@ -250,7 +250,7 @@ export function onPrometheusMetrics(
250250        contract_address : options . contractAddress , 
251251        output_module : emitter . request . outputModule , 
252252      } , 
253-       1 
253+       1 , 
254254    ) ; 
255255
256256    if  ( block . clock )  { 
@@ -260,7 +260,7 @@ export function onPrometheusMetrics(
260260          contract_address : options . contractAddress , 
261261          output_module : emitter . request . outputModule , 
262262        } , 
263-         Number ( block . clock . number ) 
263+         Number ( block . clock . number ) , 
264264      ) ; 
265265
266266      head_block_time_drift ?. set ( 
@@ -269,7 +269,7 @@ export function onPrometheusMetrics(
269269          contract_address : options . contractAddress , 
270270          output_module : emitter . request . outputModule , 
271271        } , 
272-         calculateHeadBlockTimeDrift ( block . clock ) 
272+         calculateHeadBlockTimeDrift ( block . clock ) , 
273273      ) ; 
274274
275275      head_block_timestamp ?. set ( 
@@ -278,7 +278,7 @@ export function onPrometheusMetrics(
278278          contract_address : options . contractAddress , 
279279          output_module : emitter . request . outputModule , 
280280        } , 
281-         Number ( block . clock . timestamp ?. seconds ) 
281+         Number ( block . clock . timestamp ?. seconds ) , 
282282      ) ; 
283283    } 
284284  } ) ; 
0 commit comments