Skip to content

Commit 12c287c

Browse files
committed
Change to TEST_LICENSE
1 parent 91f91c2 commit 12c287c

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/benchmark-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
run: npm install
2929
- name: Run Benchmark Tests
3030
env:
31-
NEW_RELIC_LICENSE_KEY: ${{ secrets.NEW_RELIC_API_KEY_PRODUCTION }}
31+
NEW_RELIC_LICENSE_KEY: ${{ secrets.TEST_LICENSE }}
3232
run: node ./bin/run-bench.js --filename=${{ github.base_ref || 'main' }}_${{ matrix.node-version }}
3333
- name: Verify Benchmark Output
3434
run: ls benchmark_results

bin/otel-metrics-sender.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77

88
const NR_KEY = process.env.NEW_RELIC_LICENSE_KEY
99
if (NR_KEY === null) {
10-
console.warn('Missing required environment variable: NEW_RELIC_LICENSE_KEY. Will not send metrics.')
10+
console.error('Missing required environment variable: NEW_RELIC_LICENSE_KEY.')
11+
process.exit(1)
1112
}
1213

1314
const { MeterProvider, PeriodicExportingMetricReader } = require('@opentelemetry/sdk-metrics')

bin/run-bench.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ const globs = []
2222
const opts = Object.create(null)
2323
let hasFailures = false
2424
const SEND_METRICS = process.env.NEW_RELIC_LICENSE_KEY ? true : false
25+
if (SEND_METRICS === false) {
26+
console.log('NEW_RELIC_LICENSE_KEY not set. Will not send metrics.')
27+
}
2528

2629
process.argv.slice(2).forEach(function forEachFileArg(file) {
2730
if (/^--/.test(file) && file.indexOf('=') > -1) {

0 commit comments

Comments
 (0)