This buildpack sets up the necessary machinery to utilize Heroku's Language Metrics feature for Node.js applications.
This buildpack supports all Node versions greater than
10.x releases are supported.
Including this buildpack with an earlier version of Node will not break the application. It will simply become a no-op.
This buildpack does two things.
$HEROKU_METRICS_URL is set as a result of the
runtime-heroku-metrics labs flag, the Node module will be automatically required by your
Node app at runtime using the
NODE_OPTIONS env var introduced in 8.0.0.
The Node module monitors your application's event loop and garbage collector and forwards
$HEROKU_METRICS_URL for processing.
This buildpack is expected to be rolled into the official Node buildpack before Node metrics are GA.
$ bundle install $ bundle exec rspec
While it takes too long to run on Travis as part of CI, you can validate changes across every supported version of Node locally by running:
$ bundle install $ TEST_ALL_NODE_VERSIONS=true bundle exec rspec
Copy the snippet above into CLI.