newrelic 9.4.0 → 9.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NEWS.md CHANGED
@@ -1,3 +1,11 @@
1
+ ### v9.5.0 (2022-10-26)
2
+
3
+ * Increased the default limit of custom events from 1,000 events per minute to 3,000 events per minute. In the scenario that custom events were being limited, this change will allow more custom events to be sent to New Relic. There is also a new configurable maximum limit of 100,000 events per minute. To change the limits, see the documentation for [custom_insights_events](https://docs.newrelic.com/docs/apm/agents/nodejs-agent/installation-configuration/nodejs-agent-configuration#custom_events_max_samples_stored). To learn more about the change and how to determine if custom events are being dropped, see our Explorers Hub [post](https://discuss.newrelic.com/t/send-more-custom-events-with-the-latest-apm-agents/190497).
4
+
5
+ * Updated CI process to include collection of code coverage statistics.
6
+
7
+ * Added a [document](./documentation/feature-flags.md) for our current feature flags.
8
+
1
9
  ### v9.4.0 (2022-10-24)
2
10
 
3
11
  * Removed legacy agent async context propagation. The default behavior is now what was behind the `feature_flag.new_promise_tracking`. You can read more about the difference [here](https://docs.newrelic.com/docs/release-notes/agent-release-notes/nodejs-release-notes/node-agent-7-3-0#new-features).
package/README.md CHANGED
@@ -1,8 +1,7 @@
1
- [![Community Plus header](https://github.com/newrelic/opensource-website/raw/master/src/images/categories/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus)
1
+ [![Community Plus header](https://github.com/newrelic/opensource-website/raw/main/src/images/categories/Community_Plus.png)](https://opensource.newrelic.com/oss-category/#community-plus)
2
2
 
3
- # New Relic's Node.js agent [![Server Smoke Tests][3]][4] [![Node Agent CI][5]][6]
4
-
5
- [![npm status badge][1]][2]
3
+ # New Relic's Node.js agent
4
+ [![npm status badge][1]][2] [![Server Smoke Tests][3]][4] [![Node Agent CI][5]][6] [![codecov][7]][8]
6
5
 
7
6
  This package instruments your application for performance monitoring with [New Relic](https://newrelic.com).
8
7
 
@@ -263,9 +262,12 @@ The Node.js agent is licensed under the [Apache 2.0](http://apache.org/licenses/
263
262
  The Node.js agent also uses source code from third-party libraries. You can find full details on which libraries are used and the terms under which they are licensed in [the third-party notices document](https://github.com/newrelic/node-newrelic/blob/main/THIRD_PARTY_NOTICES.md).
264
263
 
265
264
 
266
- [1]: https://nodei.co/npm/newrelic.png
267
- [2]: https://nodei.co/npm/newrelic
265
+ [1]: https://img.shields.io/npm/v/newrelic.svg
266
+ [2]: https://www.npmjs.com/package/newrelic
268
267
  [3]: https://github.com/newrelic/node-newrelic/workflows/Server%20Smoke%20Tests/badge.svg
269
268
  [4]: https://github.com/newrelic/node-newrelic/actions?query=workflow%3A%22Server+Smoke+Tests%22
270
269
  [5]: https://github.com/newrelic/node-newrelic/workflows/Node%20Agent%20CI/badge.svg
271
270
  [6]: https://github.com/newrelic/node-newrelic/actions?query=workflow%3A%22Node+Agent+CI%22
271
+ [7]: https://codecov.io/gh/newrelic/node-newrelic/branch/main/graph/badge.svg
272
+ [8]: https://codecov.io/gh/newrelic/node-newrelic
273
+
@@ -707,7 +707,7 @@ exports.config = () => ({
707
707
  *
708
708
  * @env NEW_RELIC_CUSTOM_INSIGHTS_EVENTS_MAX_SAMPLES_STORED
709
709
  */
710
- max_samples_stored: 1000
710
+ max_samples_stored: 3000
711
711
  },
712
712
  /**
713
713
  * This is used to configure properties about the user's host name.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newrelic",
3
- "version": "9.4.0",
3
+ "version": "9.5.0",
4
4
  "author": "New Relic Node.js agent team <nodejs@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [
@@ -146,8 +146,8 @@
146
146
  "bench": "node ./bin/run-bench.js",
147
147
  "docker-env": "./bin/docker-env-vars.sh",
148
148
  "docs": "npm ci && jsdoc -c ./jsdoc-conf.json --private -r .",
149
- "integration": "npm run prepare-test && npm run sub-install && time tap --test-regex='(\\/|^test\\/integration\\/.*\\.tap\\.js)$' --timeout=180 --no-coverage --reporter classic",
150
- "integration:async-local": "npm run prepare-test && npm run sub-install && time tap --test-regex='(\\/|^test\\/integration\\/.*\\.tap\\.js)$' --timeout=180 --no-coverage --reporter classic --test-env=NEW_RELIC_FEATURE_FLAG_ASYNC_LOCAL_CONTEXT=1",
149
+ "integration": "npm run prepare-test && npm run sub-install && time c8 -o ./coverage/integration tap --test-regex='(\\/|^test\\/integration\\/.*\\.tap\\.js)$' --timeout=180 --no-coverage --reporter classic",
150
+ "integration:async-local": "npm run prepare-test && npm run sub-install && time c8 -o ./coverage/integration-async-local tap --test-regex='(\\/|^test\\/integration\\/.*\\.tap\\.js)$' --timeout=360 --no-coverage --reporter classic --test-env=NEW_RELIC_FEATURE_FLAG_ASYNC_LOCAL_CONTEXT=1",
151
151
  "prepare-test": "npm run ssl && npm run docker-env",
152
152
  "lint": "eslint ./*.{js,mjs} lib test bin examples",
153
153
  "lint:fix": "eslint --fix, ./*.{js,mjs} lib test bin examples",