Skip to content

Commit e8e56e4

Browse files
committed
fix syntax to read env variables
1 parent edc0786 commit e8e56e4

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

app.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@ const {
1313
const os = require('os');
1414
const {v4: uuidv4} = require('uuid');
1515

16-
const workflowIDCount = process.env('WORKFLOW_ID_COUNT');
17-
const customerIDCount = process.env('CUSTOMER_ID_COUNT');
18-
const otlpEndpoint = process.env('OTLP_ENDPOINT');
19-
const serviceName = process.env('SERVICE_NAME');
20-
const otelMetricExporterFrequency = process.env('OTLP_METRIC_EXPORTER_FREQUENCY');
21-
const otelMeterName = process.env('OTLP_METER_NAME');
22-
const environment = process.env('ENVIRONMENT');
16+
const workflowIDCount = parseInt(process.env.WORKFLOW_ID_COUNT);
17+
const customerIDCount = parseInt(process.env.CUSTOMER_ID_COUNT);
18+
const otlpEndpoint = process.env.OTLP_ENDPOINT;
19+
const serviceName = process.env.SERVICE_NAME;
20+
const otelMetricExporterFrequency = parseInt(process.env.OTLP_METRIC_EXPORTER_FREQUENCY);
21+
const otelMeterName = process.env.OTLP_METER_NAME;
22+
const environment = process.env.ENVIRONMENT;
2323

2424
// Global variables
2525
// Toggle this number below to explode cardinality.

0 commit comments

Comments
 (0)