@vtex/api 7.2.0 → 7.2.1-beta.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.
|
@@ -194,8 +194,8 @@ const startWorker = (serviceJSON) => {
|
|
|
194
194
|
const privateHandlersRouter = routerFromPrivateHttpHandlers(httpHandlers.pvt);
|
|
195
195
|
app.use(privateHandlersRouter.routes());
|
|
196
196
|
}
|
|
197
|
+
global.metrics = new MetricsAccumulator_1.MetricsAccumulator();
|
|
197
198
|
process.on('message', onMessage(serviceJSON));
|
|
198
199
|
return app;
|
|
199
200
|
};
|
|
200
201
|
exports.startWorker = startWorker;
|
|
201
|
-
global.metrics = new MetricsAccumulator_1.MetricsAccumulator();
|