Skip to content

Commit

Permalink
fixed env resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
esterlus committed Sep 13, 2024
1 parent cbe3c6a commit 62700fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ if (require.main === module) {
throw new Error("Missing 'UHTTP_LM_METRIC_LONGITUDE' env var");
}

const metricInstance = process.env.UHTTP_LM_METRIC_INSTANCE;
const uClientId = process.env.UHTTP_LM_CLIENT_ID;
const rpcProvider = process.env.UHTTP_LM_RPC_PROVIDER;
const forceZeroHop = parseBooleanEnv(process.env.UHTTP_LM_ZERO_HOP);
Expand Down Expand Up @@ -91,7 +90,7 @@ if (require.main === module) {
metrics: {},
metricLabels: {
hops: forceZeroHop ? '0' : '1',
instance: metricInstance,
instance: process.env.UHTTP_LM_METRIC_INSTANCE,
region: process.env.UHTTP_LM_METRIC_REGION,
zone: process.env.UHTTP_LM_METRIC_ZONE,
location: process.env.UHTTP_LM_METRIC_LOCATION,
Expand Down

0 comments on commit 62700fd

Please sign in to comment.