We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 525bd32 commit 4319e35Copy full SHA for 4319e35
packages/core/src/mongoMeasurement.ts
@@ -5,17 +5,6 @@ export class MongoMeasurement {
5
6
constructor() {
7
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";
19
20
if (serverUrl !== undefined) {
21
this.tracerClient = new MongoTracer({
0 commit comments