Skip to content

Commit

Permalink
feat(core): initialize mongoMeasurement client as a side-effect
Browse files Browse the repository at this point in the history
  • Loading branch information
adriencaccia committed Jan 12, 2024
1 parent 676473d commit f5788e2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const linuxPerf = new native_core.LinuxPerf();

export const isBound = native_core.isBound;

export let mongoMeasurement: MongoMeasurement;
export const mongoMeasurement = new MongoMeasurement();

export const setupCore = () => {
initOptimization();
Expand All @@ -18,7 +18,6 @@ export const setupCore = () => {
);
linuxPerf.start();
checkV8Flags();
mongoMeasurement = new MongoMeasurement();
};

export const teardownCore = () => {
Expand Down

0 comments on commit f5788e2

Please sign in to comment.