File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 77
88const NR_KEY = process . env . NEW_RELIC_LICENSE_KEY
99if ( 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
1314const { MeterProvider, PeriodicExportingMetricReader } = require ( '@opentelemetry/sdk-metrics' )
Original file line number Diff line number Diff line change @@ -22,6 +22,9 @@ const globs = []
2222const opts = Object . create ( null )
2323let hasFailures = false
2424const 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
2629process . argv . slice ( 2 ) . forEach ( function forEachFileArg ( file ) {
2730 if ( / ^ - - / . test ( file ) && file . indexOf ( '=' ) > - 1 ) {
You can’t perform that action at this time.
0 commit comments