Skip to content

Commit 4319e35

Browse files
committed
feat(core): remove handling of mongo env var
1 parent 525bd32 commit 4319e35

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

packages/core/src/mongoMeasurement.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,6 @@ export class MongoMeasurement {
55

66
constructor() {
77
const serverUrl = process.env.CODSPEED_MONGO_INSTR_SERVER_ADDRESS;
8-
// TODO
9-
const mongoUriEnvName = process.env.CODSPEED_MONGO_INSTR_URI_ENV_NAME;
10-
if (mongoUriEnvName === undefined) {
11-
throw new Error("CODSPEED_MONGO_INSTR_URI_ENV_NAME is not defined");
12-
}
13-
const mongoUri = process.env[mongoUriEnvName];
14-
if (mongoUri === undefined) {
15-
throw new Error(`Environment variable ${mongoUriEnvName} is not defined`);
16-
}
17-
process.env[mongoUriEnvName] =
18-
"mongodb://localhost:27018?directConnection=true";
198

209
if (serverUrl !== undefined) {
2110
this.tracerClient = new MongoTracer({

0 commit comments

Comments
 (0)