Skip to content

Commit f5788e2

Browse files
committed
feat(core): initialize mongoMeasurement client as a side-effect
1 parent 676473d commit f5788e2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

packages/core/src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const linuxPerf = new native_core.LinuxPerf();
99

1010
export const isBound = native_core.isBound;
1111

12-
export let mongoMeasurement: MongoMeasurement;
12+
export const mongoMeasurement = new MongoMeasurement();
1313

1414
export const setupCore = () => {
1515
initOptimization();
@@ -18,7 +18,6 @@ export const setupCore = () => {
1818
);
1919
linuxPerf.start();
2020
checkV8Flags();
21-
mongoMeasurement = new MongoMeasurement();
2221
};
2322

2423
export const teardownCore = () => {

0 commit comments

Comments
 (0)