newrelic 12.8.2 → 12.10.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 +45 -0
- package/THIRD_PARTY_NOTICES.md +47 -243
- package/api.js +14 -13
- package/bin/test-naming-rules.js +2 -3
- package/index.js +0 -4
- package/lib/agent.js +2 -1
- package/lib/aggregators/base-aggregator.js +2 -2
- package/lib/aggregators/trace-aggregator.js +1 -5
- package/lib/attributes.js +5 -5
- package/lib/collector/api.js +1 -3
- package/lib/collector/facts.js +2 -2
- package/lib/collector/http-agents.js +2 -2
- package/lib/collector/remote-method.js +4 -4
- package/lib/config/attribute-filter.js +1 -1
- package/lib/config/default.js +2 -2
- package/lib/config/harvest-config-validator.js +2 -2
- package/lib/config/index.js +12 -12
- package/lib/config/merge-server-config.js +1 -2
- package/lib/custom-events/custom-event-aggregator.js +0 -1
- package/lib/db/query-parsers/sql.js +2 -0
- package/lib/db/slow-query.js +1 -0
- package/lib/db/statement-matcher.js +3 -2
- package/lib/db/utils.js +4 -0
- package/lib/environment.js +2 -2
- package/lib/errors/error-collector.js +2 -2
- package/lib/errors/error-event-aggregator.js +1 -0
- package/lib/errors/helper.js +4 -4
- package/lib/errors/index.js +5 -6
- package/lib/grpc/connection.js +1 -1
- package/lib/header-attributes.js +21 -20
- package/lib/instrumentation/@elastic/elasticsearch.js +2 -2
- package/lib/instrumentation/@opensearch-project/opensearch.js +161 -0
- package/lib/instrumentation/@prisma/client.js +4 -3
- package/lib/instrumentation/amqplib/utils.js +1 -1
- package/lib/instrumentation/aws-sdk/v3/common.js +4 -7
- package/lib/instrumentation/aws-sdk/v3/lambda.js +56 -0
- package/lib/instrumentation/aws-sdk/v3/smithy-client.js +2 -0
- package/lib/instrumentation/bluebird.js +1 -0
- package/lib/instrumentation/connect.js +1 -1
- package/lib/instrumentation/core/http-outbound.js +1 -2
- package/lib/instrumentation/core/http.js +2 -2
- package/lib/instrumentation/core/timers.js +0 -1
- package/lib/instrumentation/express.js +1 -1
- package/lib/instrumentation/kafkajs/consumer.js +1 -1
- package/lib/instrumentation/mysql/mysql.js +2 -2
- package/lib/instrumentation/openai.js +1 -2
- package/lib/instrumentation/undici.js +2 -1
- package/lib/instrumentation/when/contextualizer.js +2 -1
- package/lib/instrumentation/when/index.js +3 -1
- package/lib/instrumentations.js +27 -26
- package/lib/llm-events/aws-bedrock/bedrock-response.js +0 -2
- package/lib/llm-events/aws-bedrock/chat-completion-summary.js +1 -0
- package/lib/llm-events/aws-bedrock/embedding.js +1 -0
- package/lib/llm-events/aws-bedrock/event.js +1 -1
- package/lib/llm-events/aws-bedrock/stream-handler.js +6 -6
- package/lib/llm-events/event.js +1 -0
- package/lib/llm-events/langchain/chat-completion-summary.js +2 -2
- package/lib/llm-events/langchain/event.js +1 -0
- package/lib/llm-events/langchain/vector-search.js +2 -2
- package/lib/logger.js +0 -2
- package/lib/metrics/index.js +0 -1
- package/lib/metrics/mapper.js +2 -2
- package/lib/metrics/names.js +1 -1
- package/lib/metrics/normalizer/rule.js +2 -1
- package/lib/metrics/normalizer/tx_segment.js +4 -2
- package/lib/metrics/normalizer.js +5 -5
- package/lib/prioritized-attributes.js +3 -2
- package/lib/priority-queue.js +1 -1
- package/lib/reservoir.js +1 -1
- package/lib/sampler.js +5 -5
- package/lib/serverless/api-gateway.js +13 -79
- package/lib/serverless/aws-lambda.js +5 -3
- package/lib/shim/conglomerate-shim.js +5 -0
- package/lib/shim/datastore-shim.js +2 -1
- package/lib/shim/message-shim/consume.js +2 -1
- package/lib/shim/message-shim/index.js +1 -1
- package/lib/shim/message-shim/subscribe-consume.js +10 -12
- package/lib/shim/promise-shim.js +8 -8
- package/lib/shim/shim.js +10 -12
- package/lib/shim/webframework-shim/index.js +1 -1
- package/lib/shim/webframework-shim/middleware.js +1 -1
- package/lib/shimmer.js +2 -3
- package/lib/spans/base-span-streamer.js +1 -1
- package/lib/spans/map-to-streaming-type.js +0 -3
- package/lib/spans/span-event-aggregator.js +1 -1
- package/lib/spans/span-streamer.js +0 -4
- package/lib/spans/streaming-span-event-aggregator.js +1 -3
- package/lib/system-info.js +1 -2
- package/lib/timer.js +0 -1
- package/lib/transaction/index.js +9 -6
- package/lib/transaction/name-state.js +6 -5
- package/lib/transaction/trace/exclusive-time-calculator.js +1 -1
- package/lib/transaction/trace/segment.js +0 -1
- package/lib/transaction/tracecontext.js +3 -3
- package/lib/util/cat.js +3 -3
- package/lib/util/copy.js +1 -1
- package/lib/util/deep-equal.js +1 -1
- package/lib/util/hashes.js +2 -0
- package/lib/util/label-parser.js +1 -0
- package/lib/util/logger.js +2 -4
- package/lib/util/sql/obfuscate.js +7 -4
- package/lib/util/urltils.js +3 -3
- package/lib/utilization/aws-info.js +1 -0
- package/lib/utilization/azure-info.js +1 -0
- package/lib/utilization/docker-info.js +4 -4
- package/lib/utilization/index.js +1 -1
- package/package.json +10 -12
- package/stub_api.js +1 -2
package/NEWS.md
CHANGED
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
### v12.10.0 (2025-01-09)
|
|
2
|
+
|
|
3
|
+
#### Features
|
|
4
|
+
|
|
5
|
+
* Added instrumentation for `@opensearch-projects/opensearch` v2.1.0+ ([#2850](https://github.com/newrelic/node-newrelic/pull/2850)) ([763c0e6](https://github.com/newrelic/node-newrelic/commit/763c0e6ad50f15677b5f535999f93f122c84b583))
|
|
6
|
+
|
|
7
|
+
#### Bug fixes
|
|
8
|
+
|
|
9
|
+
* Fixed event matcher to use properties specific to web requests (v1/ALB and v2) ([#2863](https://github.com/newrelic/node-newrelic/pull/2863)) ([a93fe6e](https://github.com/newrelic/node-newrelic/commit/a93fe6e68e5b8047cc7c3bca8b9f50a0a7ffddd6))
|
|
10
|
+
|
|
11
|
+
#### Miscellaneous chores
|
|
12
|
+
|
|
13
|
+
* Fixed mysql2 tests for new mysql2 version ([#2853](https://github.com/newrelic/node-newrelic/pull/2853)) ([30a6de0](https://github.com/newrelic/node-newrelic/commit/30a6de00d22b92332009d7127bf52fbd10310214))
|
|
14
|
+
* Updated eslint configuration ([#2851](https://github.com/newrelic/node-newrelic/pull/2851)) ([d2fba9d](https://github.com/newrelic/node-newrelic/commit/d2fba9da8b9ba28d94e50c24fa494a35c442f0a5))
|
|
15
|
+
* Utilize updated @newrelic/eslint-config ([#2865](https://github.com/newrelic/node-newrelic/pull/2865)) ([f53d4fc](https://github.com/newrelic/node-newrelic/commit/f53d4fc8d911a998759cae90a9cd0bf09ff17828))
|
|
16
|
+
|
|
17
|
+
#### Tests
|
|
18
|
+
|
|
19
|
+
* Removed `t.diagnostic` from tests ([#2858](https://github.com/newrelic/node-newrelic/pull/2858)) ([23ca237](https://github.com/newrelic/node-newrelic/commit/23ca237731d4fd94b13d03eab9feb645aabe36d0))
|
|
20
|
+
|
|
21
|
+
#### Continuous integration
|
|
22
|
+
|
|
23
|
+
* Updated codecov-action to latest released version sha ([#2866](https://github.com/newrelic/node-newrelic/pull/2866)) ([75f8902](https://github.com/newrelic/node-newrelic/commit/75f8902e2dd9e1946666db6b1cf8617a5360d757))
|
|
24
|
+
|
|
25
|
+
### v12.9.0 (2024-12-18)
|
|
26
|
+
|
|
27
|
+
#### Features
|
|
28
|
+
|
|
29
|
+
* Added entity linking attributes to aws-sdk v3 Lambda segments ([#2845](https://github.com/newrelic/node-newrelic/pull/2845)) ([8820265](https://github.com/newrelic/node-newrelic/commit/882026502dbc12b700b893485458176bcd03f68e))
|
|
30
|
+
* Provided ability to define newrelic config as `newrelic.mjs` ([#2836](https://github.com/newrelic/node-newrelic/pull/2836)) ([972b59d](https://github.com/newrelic/node-newrelic/commit/972b59d4c4bd5f212d5fd695ce1007802354b7a0))
|
|
31
|
+
|
|
32
|
+
#### Documentation
|
|
33
|
+
|
|
34
|
+
* Updated compatibility report ([#2828](https://github.com/newrelic/node-newrelic/pull/2828)) ([d5fe8e3](https://github.com/newrelic/node-newrelic/commit/d5fe8e323c34464e8cc10be3f5c968a96357b6f6))
|
|
35
|
+
|
|
36
|
+
#### Miscellaneous chores
|
|
37
|
+
|
|
38
|
+
* **deps:** Updated @newrelic/security-agent to v2.2.0 ([#2842](https://github.com/newrelic/node-newrelic/pull/2842)) ([170941e](https://github.com/newrelic/node-newrelic/commit/170941e2f16d7e84edabfff40fd31906612b393e))
|
|
39
|
+
* Updated borp configs to target tests correctly ([#2835](https://github.com/newrelic/node-newrelic/pull/2835)) ([66ae59d](https://github.com/newrelic/node-newrelic/commit/66ae59d1e047dead092b3fa681017e3d42ce9474))
|
|
40
|
+
|
|
41
|
+
#### Tests
|
|
42
|
+
|
|
43
|
+
* Removed `tap` and cleaned up left over tap helpers ([#2804](https://github.com/newrelic/node-newrelic/pull/2804)) ([37407b6](https://github.com/newrelic/node-newrelic/commit/37407b6d14c2bd6a1c577cce811277753eb8069e))
|
|
44
|
+
* Updated `match` to fail if you pass in an object that lacks the expected keys ([#2843](https://github.com/newrelic/node-newrelic/pull/2843)) ([a3db8bd](https://github.com/newrelic/node-newrelic/commit/a3db8bd993d82a3c1c8873f9e552ba5fdf7cb5f4))
|
|
45
|
+
|
|
1
46
|
### v12.8.2 (2024-12-09)
|
|
2
47
|
|
|
3
48
|
#### Bug fixes
|
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -52,9 +52,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
52
52
|
* [conventional-changelog-conventionalcommits](#conventional-changelog-conventionalcommits)
|
|
53
53
|
* [conventional-changelog-writer](#conventional-changelog-writer)
|
|
54
54
|
* [conventional-commits-parser](#conventional-commits-parser)
|
|
55
|
-
* [eslint-plugin-disable](#eslint-plugin-disable)
|
|
56
55
|
* [eslint-plugin-jsdoc](#eslint-plugin-jsdoc)
|
|
57
|
-
* [eslint-plugin-sonarjs](#eslint-plugin-sonarjs)
|
|
58
56
|
* [eslint](#eslint)
|
|
59
57
|
* [express](#express)
|
|
60
58
|
* [git-raw-commits](#git-raw-commits)
|
|
@@ -67,6 +65,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
67
65
|
* [koa](#koa)
|
|
68
66
|
* [lint-staged](#lint-staged)
|
|
69
67
|
* [lockfile-lint](#lockfile-lint)
|
|
68
|
+
* [neostandard](#neostandard)
|
|
70
69
|
* [nock](#nock)
|
|
71
70
|
* [proxyquire](#proxyquire)
|
|
72
71
|
* [rimraf](#rimraf)
|
|
@@ -74,7 +73,6 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
74
73
|
* [should](#should)
|
|
75
74
|
* [sinon](#sinon)
|
|
76
75
|
* [superagent](#superagent)
|
|
77
|
-
* [tap](#tap)
|
|
78
76
|
|
|
79
77
|
**[optionalDependencies](#optionalDependencies)**
|
|
80
78
|
|
|
@@ -91,7 +89,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
91
89
|
|
|
92
90
|
### @grpc/grpc-js
|
|
93
91
|
|
|
94
|
-
This product includes source derived from [@grpc/grpc-js](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js) ([v1.12.
|
|
92
|
+
This product includes source derived from [@grpc/grpc-js](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js) ([v1.12.4](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/tree/v1.12.4)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/blob/v1.12.4/LICENSE):
|
|
95
93
|
|
|
96
94
|
```
|
|
97
95
|
Apache License
|
|
@@ -509,7 +507,7 @@ This product includes source derived from [@grpc/proto-loader](https://github.co
|
|
|
509
507
|
|
|
510
508
|
### @newrelic/security-agent
|
|
511
509
|
|
|
512
|
-
This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v2.
|
|
510
|
+
This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v2.2.0](https://github.com/newrelic/csec-node-agent/tree/v2.2.0)), distributed under the [UNKNOWN License](https://github.com/newrelic/csec-node-agent/blob/v2.2.0/LICENSE):
|
|
513
511
|
|
|
514
512
|
```
|
|
515
513
|
## New Relic Software License v1.0
|
|
@@ -615,7 +613,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
615
613
|
|
|
616
614
|
### https-proxy-agent
|
|
617
615
|
|
|
618
|
-
This product includes source derived from [https-proxy-agent](https://github.com/TooTallNate/proxy-agents) ([v7.0.
|
|
616
|
+
This product includes source derived from [https-proxy-agent](https://github.com/TooTallNate/proxy-agents) ([v7.0.6](https://github.com/TooTallNate/proxy-agents/tree/v7.0.6)), distributed under the [MIT License](https://github.com/TooTallNate/proxy-agents/blob/v7.0.6/LICENSE):
|
|
619
617
|
|
|
620
618
|
```
|
|
621
619
|
(The MIT License)
|
|
@@ -644,7 +642,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
644
642
|
|
|
645
643
|
### import-in-the-middle
|
|
646
644
|
|
|
647
|
-
This product includes source derived from [import-in-the-middle](https://github.com/nodejs/import-in-the-middle) ([v1.
|
|
645
|
+
This product includes source derived from [import-in-the-middle](https://github.com/nodejs/import-in-the-middle) ([v1.12.0](https://github.com/nodejs/import-in-the-middle/tree/v1.12.0)), distributed under the [Apache-2.0 License](https://github.com/nodejs/import-in-the-middle/blob/v1.12.0/LICENSE):
|
|
648
646
|
|
|
649
647
|
```
|
|
650
648
|
Apache License
|
|
@@ -1041,7 +1039,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
1041
1039
|
|
|
1042
1040
|
### winston-transport
|
|
1043
1041
|
|
|
1044
|
-
This product includes source derived from [winston-transport](https://github.com/winstonjs/winston-transport) ([v4.
|
|
1042
|
+
This product includes source derived from [winston-transport](https://github.com/winstonjs/winston-transport) ([v4.9.0](https://github.com/winstonjs/winston-transport/tree/v4.9.0)), distributed under the [MIT License](https://github.com/winstonjs/winston-transport/blob/v4.9.0/LICENSE):
|
|
1045
1043
|
|
|
1046
1044
|
```
|
|
1047
1045
|
The MIT License (MIT)
|
|
@@ -1074,7 +1072,7 @@ SOFTWARE.
|
|
|
1074
1072
|
|
|
1075
1073
|
### @aws-sdk/client-s3
|
|
1076
1074
|
|
|
1077
|
-
This product includes source derived from [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3) ([v3.
|
|
1075
|
+
This product includes source derived from [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3) ([v3.714.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.714.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.714.0/LICENSE):
|
|
1078
1076
|
|
|
1079
1077
|
```
|
|
1080
1078
|
Apache License
|
|
@@ -1283,7 +1281,7 @@ This product includes source derived from [@aws-sdk/client-s3](https://github.co
|
|
|
1283
1281
|
|
|
1284
1282
|
### @aws-sdk/s3-request-presigner
|
|
1285
1283
|
|
|
1286
|
-
This product includes source derived from [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3) ([v3.
|
|
1284
|
+
This product includes source derived from [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3) ([v3.714.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.714.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.714.0/LICENSE):
|
|
1287
1285
|
|
|
1288
1286
|
```
|
|
1289
1287
|
Apache License
|
|
@@ -1492,7 +1490,7 @@ This product includes source derived from [@aws-sdk/s3-request-presigner](https:
|
|
|
1492
1490
|
|
|
1493
1491
|
### @koa/router
|
|
1494
1492
|
|
|
1495
|
-
This product includes source derived from [@koa/router](https://github.com/koajs/router) ([v12.0.
|
|
1493
|
+
This product includes source derived from [@koa/router](https://github.com/koajs/router) ([v12.0.2](https://github.com/koajs/router/tree/v12.0.2)), distributed under the [MIT License](https://github.com/koajs/router/blob/v12.0.2/LICENSE):
|
|
1496
1494
|
|
|
1497
1495
|
```
|
|
1498
1496
|
The MIT License (MIT)
|
|
@@ -1550,7 +1548,7 @@ SOFTWARE.
|
|
|
1550
1548
|
|
|
1551
1549
|
### @newrelic/eslint-config
|
|
1552
1550
|
|
|
1553
|
-
This product includes source derived from [@newrelic/eslint-config](https://github.com/newrelic/eslint-config-newrelic) ([v0.
|
|
1551
|
+
This product includes source derived from [@newrelic/eslint-config](https://github.com/newrelic/eslint-config-newrelic) ([v0.5.0](https://github.com/newrelic/eslint-config-newrelic/tree/v0.5.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/eslint-config-newrelic/blob/v0.5.0/LICENSE):
|
|
1554
1552
|
|
|
1555
1553
|
```
|
|
1556
1554
|
Apache License
|
|
@@ -2206,7 +2204,7 @@ THE SOFTWARE.
|
|
|
2206
2204
|
|
|
2207
2205
|
### @slack/bolt
|
|
2208
2206
|
|
|
2209
|
-
This product includes source derived from [@slack/bolt](https://github.com/slackapi/bolt) ([v3.
|
|
2207
|
+
This product includes source derived from [@slack/bolt](https://github.com/slackapi/bolt) ([v3.22.0](https://github.com/slackapi/bolt/tree/v3.22.0)), distributed under the [MIT License](https://github.com/slackapi/bolt/blob/v3.22.0/LICENSE):
|
|
2210
2208
|
|
|
2211
2209
|
```
|
|
2212
2210
|
The MIT License (MIT)
|
|
@@ -2683,7 +2681,7 @@ SOFTWARE.
|
|
|
2683
2681
|
|
|
2684
2682
|
### async
|
|
2685
2683
|
|
|
2686
|
-
This product includes source derived from [async](https://github.com/caolan/async) ([v3.2.
|
|
2684
|
+
This product includes source derived from [async](https://github.com/caolan/async) ([v3.2.6](https://github.com/caolan/async/tree/v3.2.6)), distributed under the [MIT License](https://github.com/caolan/async/blob/v3.2.6/LICENSE):
|
|
2687
2685
|
|
|
2688
2686
|
```
|
|
2689
2687
|
Copyright (c) 2010-2018 Caolan McMahon
|
|
@@ -2710,7 +2708,7 @@ THE SOFTWARE.
|
|
|
2710
2708
|
|
|
2711
2709
|
### aws-sdk
|
|
2712
2710
|
|
|
2713
|
-
This product includes source derived from [aws-sdk](https://github.com/aws/aws-sdk-js) ([v2.
|
|
2711
|
+
This product includes source derived from [aws-sdk](https://github.com/aws/aws-sdk-js) ([v2.1692.0](https://github.com/aws/aws-sdk-js/tree/v2.1692.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js/blob/v2.1692.0/LICENSE.txt):
|
|
2714
2712
|
|
|
2715
2713
|
```
|
|
2716
2714
|
|
|
@@ -3109,36 +3107,9 @@ SOFTWARE.
|
|
|
3109
3107
|
|
|
3110
3108
|
```
|
|
3111
3109
|
|
|
3112
|
-
### eslint-plugin-disable
|
|
3113
|
-
|
|
3114
|
-
This product includes source derived from [eslint-plugin-disable](https://github.com/mradionov/eslint-plugin-disable) ([v2.0.3](https://github.com/mradionov/eslint-plugin-disable/tree/v2.0.3)), distributed under the [MIT License](https://github.com/mradionov/eslint-plugin-disable/blob/v2.0.3/LICENSE):
|
|
3115
|
-
|
|
3116
|
-
```
|
|
3117
|
-
Copyright (c) 2015 Michael Radionov (https://github.com/mradionov)
|
|
3118
|
-
|
|
3119
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3120
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
3121
|
-
in the Software without restriction, including without limitation the rights
|
|
3122
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3123
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
3124
|
-
furnished to do so, subject to the following conditions:
|
|
3125
|
-
|
|
3126
|
-
The above copyright notice and this permission notice shall be included in
|
|
3127
|
-
all copies or substantial portions of the Software.
|
|
3128
|
-
|
|
3129
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3130
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3131
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3132
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3133
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3134
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3135
|
-
THE SOFTWARE.
|
|
3136
|
-
|
|
3137
|
-
```
|
|
3138
|
-
|
|
3139
3110
|
### eslint-plugin-jsdoc
|
|
3140
3111
|
|
|
3141
|
-
This product includes source derived from [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) ([
|
|
3112
|
+
This product includes source derived from [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) ([v50.6.1](https://github.com/gajus/eslint-plugin-jsdoc/tree/v50.6.1)), distributed under the [BSD-3-Clause License](https://github.com/gajus/eslint-plugin-jsdoc/blob/v50.6.1/LICENSE):
|
|
3142
3113
|
|
|
3143
3114
|
```
|
|
3144
3115
|
Copyright (c) 2018, Gajus Kuizinas (http://gajus.com/)
|
|
@@ -3168,182 +3139,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
3168
3139
|
|
|
3169
3140
|
```
|
|
3170
3141
|
|
|
3171
|
-
### eslint-plugin-sonarjs
|
|
3172
|
-
|
|
3173
|
-
This product includes source derived from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs) ([v0.18.0](https://github.com/SonarSource/eslint-plugin-sonarjs/tree/v0.18.0)), distributed under the [LGPL-3.0 License](https://github.com/SonarSource/eslint-plugin-sonarjs/blob/v0.18.0/LICENSE):
|
|
3174
|
-
|
|
3175
|
-
```
|
|
3176
|
-
GNU LESSER GENERAL PUBLIC LICENSE
|
|
3177
|
-
Version 3, 29 June 2007
|
|
3178
|
-
|
|
3179
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
3180
|
-
Everyone is permitted to copy and distribute verbatim copies
|
|
3181
|
-
of this license document, but changing it is not allowed.
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
This version of the GNU Lesser General Public License incorporates
|
|
3185
|
-
the terms and conditions of version 3 of the GNU General Public
|
|
3186
|
-
License, supplemented by the additional permissions listed below.
|
|
3187
|
-
|
|
3188
|
-
0. Additional Definitions.
|
|
3189
|
-
|
|
3190
|
-
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
3191
|
-
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
3192
|
-
General Public License.
|
|
3193
|
-
|
|
3194
|
-
"The Library" refers to a covered work governed by this License,
|
|
3195
|
-
other than an Application or a Combined Work as defined below.
|
|
3196
|
-
|
|
3197
|
-
An "Application" is any work that makes use of an interface provided
|
|
3198
|
-
by the Library, but which is not otherwise based on the Library.
|
|
3199
|
-
Defining a subclass of a class defined by the Library is deemed a mode
|
|
3200
|
-
of using an interface provided by the Library.
|
|
3201
|
-
|
|
3202
|
-
A "Combined Work" is a work produced by combining or linking an
|
|
3203
|
-
Application with the Library. The particular version of the Library
|
|
3204
|
-
with which the Combined Work was made is also called the "Linked
|
|
3205
|
-
Version".
|
|
3206
|
-
|
|
3207
|
-
The "Minimal Corresponding Source" for a Combined Work means the
|
|
3208
|
-
Corresponding Source for the Combined Work, excluding any source code
|
|
3209
|
-
for portions of the Combined Work that, considered in isolation, are
|
|
3210
|
-
based on the Application, and not on the Linked Version.
|
|
3211
|
-
|
|
3212
|
-
The "Corresponding Application Code" for a Combined Work means the
|
|
3213
|
-
object code and/or source code for the Application, including any data
|
|
3214
|
-
and utility programs needed for reproducing the Combined Work from the
|
|
3215
|
-
Application, but excluding the System Libraries of the Combined Work.
|
|
3216
|
-
|
|
3217
|
-
1. Exception to Section 3 of the GNU GPL.
|
|
3218
|
-
|
|
3219
|
-
You may convey a covered work under sections 3 and 4 of this License
|
|
3220
|
-
without being bound by section 3 of the GNU GPL.
|
|
3221
|
-
|
|
3222
|
-
2. Conveying Modified Versions.
|
|
3223
|
-
|
|
3224
|
-
If you modify a copy of the Library, and, in your modifications, a
|
|
3225
|
-
facility refers to a function or data to be supplied by an Application
|
|
3226
|
-
that uses the facility (other than as an argument passed when the
|
|
3227
|
-
facility is invoked), then you may convey a copy of the modified
|
|
3228
|
-
version:
|
|
3229
|
-
|
|
3230
|
-
a) under this License, provided that you make a good faith effort to
|
|
3231
|
-
ensure that, in the event an Application does not supply the
|
|
3232
|
-
function or data, the facility still operates, and performs
|
|
3233
|
-
whatever part of its purpose remains meaningful, or
|
|
3234
|
-
|
|
3235
|
-
b) under the GNU GPL, with none of the additional permissions of
|
|
3236
|
-
this License applicable to that copy.
|
|
3237
|
-
|
|
3238
|
-
3. Object Code Incorporating Material from Library Header Files.
|
|
3239
|
-
|
|
3240
|
-
The object code form of an Application may incorporate material from
|
|
3241
|
-
a header file that is part of the Library. You may convey such object
|
|
3242
|
-
code under terms of your choice, provided that, if the incorporated
|
|
3243
|
-
material is not limited to numerical parameters, data structure
|
|
3244
|
-
layouts and accessors, or small macros, inline functions and templates
|
|
3245
|
-
(ten or fewer lines in length), you do both of the following:
|
|
3246
|
-
|
|
3247
|
-
a) Give prominent notice with each copy of the object code that the
|
|
3248
|
-
Library is used in it and that the Library and its use are
|
|
3249
|
-
covered by this License.
|
|
3250
|
-
|
|
3251
|
-
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
3252
|
-
document.
|
|
3253
|
-
|
|
3254
|
-
4. Combined Works.
|
|
3255
|
-
|
|
3256
|
-
You may convey a Combined Work under terms of your choice that,
|
|
3257
|
-
taken together, effectively do not restrict modification of the
|
|
3258
|
-
portions of the Library contained in the Combined Work and reverse
|
|
3259
|
-
engineering for debugging such modifications, if you also do each of
|
|
3260
|
-
the following:
|
|
3261
|
-
|
|
3262
|
-
a) Give prominent notice with each copy of the Combined Work that
|
|
3263
|
-
the Library is used in it and that the Library and its use are
|
|
3264
|
-
covered by this License.
|
|
3265
|
-
|
|
3266
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
3267
|
-
document.
|
|
3268
|
-
|
|
3269
|
-
c) For a Combined Work that displays copyright notices during
|
|
3270
|
-
execution, include the copyright notice for the Library among
|
|
3271
|
-
these notices, as well as a reference directing the user to the
|
|
3272
|
-
copies of the GNU GPL and this license document.
|
|
3273
|
-
|
|
3274
|
-
d) Do one of the following:
|
|
3275
|
-
|
|
3276
|
-
0) Convey the Minimal Corresponding Source under the terms of this
|
|
3277
|
-
License, and the Corresponding Application Code in a form
|
|
3278
|
-
suitable for, and under terms that permit, the user to
|
|
3279
|
-
recombine or relink the Application with a modified version of
|
|
3280
|
-
the Linked Version to produce a modified Combined Work, in the
|
|
3281
|
-
manner specified by section 6 of the GNU GPL for conveying
|
|
3282
|
-
Corresponding Source.
|
|
3283
|
-
|
|
3284
|
-
1) Use a suitable shared library mechanism for linking with the
|
|
3285
|
-
Library. A suitable mechanism is one that (a) uses at run time
|
|
3286
|
-
a copy of the Library already present on the user's computer
|
|
3287
|
-
system, and (b) will operate properly with a modified version
|
|
3288
|
-
of the Library that is interface-compatible with the Linked
|
|
3289
|
-
Version.
|
|
3290
|
-
|
|
3291
|
-
e) Provide Installation Information, but only if you would otherwise
|
|
3292
|
-
be required to provide such information under section 6 of the
|
|
3293
|
-
GNU GPL, and only to the extent that such information is
|
|
3294
|
-
necessary to install and execute a modified version of the
|
|
3295
|
-
Combined Work produced by recombining or relinking the
|
|
3296
|
-
Application with a modified version of the Linked Version. (If
|
|
3297
|
-
you use option 4d0, the Installation Information must accompany
|
|
3298
|
-
the Minimal Corresponding Source and Corresponding Application
|
|
3299
|
-
Code. If you use option 4d1, you must provide the Installation
|
|
3300
|
-
Information in the manner specified by section 6 of the GNU GPL
|
|
3301
|
-
for conveying Corresponding Source.)
|
|
3302
|
-
|
|
3303
|
-
5. Combined Libraries.
|
|
3304
|
-
|
|
3305
|
-
You may place library facilities that are a work based on the
|
|
3306
|
-
Library side by side in a single library together with other library
|
|
3307
|
-
facilities that are not Applications and are not covered by this
|
|
3308
|
-
License, and convey such a combined library under terms of your
|
|
3309
|
-
choice, if you do both of the following:
|
|
3310
|
-
|
|
3311
|
-
a) Accompany the combined library with a copy of the same work based
|
|
3312
|
-
on the Library, uncombined with any other library facilities,
|
|
3313
|
-
conveyed under the terms of this License.
|
|
3314
|
-
|
|
3315
|
-
b) Give prominent notice with the combined library that part of it
|
|
3316
|
-
is a work based on the Library, and explaining where to find the
|
|
3317
|
-
accompanying uncombined form of the same work.
|
|
3318
|
-
|
|
3319
|
-
6. Revised Versions of the GNU Lesser General Public License.
|
|
3320
|
-
|
|
3321
|
-
The Free Software Foundation may publish revised and/or new versions
|
|
3322
|
-
of the GNU Lesser General Public License from time to time. Such new
|
|
3323
|
-
versions will be similar in spirit to the present version, but may
|
|
3324
|
-
differ in detail to address new problems or concerns.
|
|
3325
|
-
|
|
3326
|
-
Each version is given a distinguishing version number. If the
|
|
3327
|
-
Library as you received it specifies that a certain numbered version
|
|
3328
|
-
of the GNU Lesser General Public License "or any later version"
|
|
3329
|
-
applies to it, you have the option of following the terms and
|
|
3330
|
-
conditions either of that published version or of any later version
|
|
3331
|
-
published by the Free Software Foundation. If the Library as you
|
|
3332
|
-
received it does not specify a version number of the GNU Lesser
|
|
3333
|
-
General Public License, you may choose any version of the GNU Lesser
|
|
3334
|
-
General Public License ever published by the Free Software Foundation.
|
|
3335
|
-
|
|
3336
|
-
If the Library as you received it specifies that a proxy can decide
|
|
3337
|
-
whether future versions of the GNU Lesser General Public License shall
|
|
3338
|
-
apply, that proxy's public statement of acceptance of any version is
|
|
3339
|
-
permanent authorization for you to choose that version for the
|
|
3340
|
-
Library.
|
|
3341
|
-
|
|
3342
|
-
```
|
|
3343
|
-
|
|
3344
3142
|
### eslint
|
|
3345
3143
|
|
|
3346
|
-
This product includes source derived from [eslint](https://github.com/eslint/eslint) ([
|
|
3144
|
+
This product includes source derived from [eslint](https://github.com/eslint/eslint) ([v9.17.0](https://github.com/eslint/eslint/tree/v9.17.0)), distributed under the [MIT License](https://github.com/eslint/eslint/blob/v9.17.0/LICENSE):
|
|
3347
3145
|
|
|
3348
3146
|
```
|
|
3349
3147
|
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
|
|
@@ -3370,7 +3168,7 @@ THE SOFTWARE.
|
|
|
3370
3168
|
|
|
3371
3169
|
### express
|
|
3372
3170
|
|
|
3373
|
-
This product includes source derived from [express](https://github.com/expressjs/express) ([v4.
|
|
3171
|
+
This product includes source derived from [express](https://github.com/expressjs/express) ([v4.21.2](https://github.com/expressjs/express/tree/v4.21.2)), distributed under the [MIT License](https://github.com/expressjs/express/blob/v4.21.2/LICENSE):
|
|
3374
3172
|
|
|
3375
3173
|
```
|
|
3376
3174
|
(The MIT License)
|
|
@@ -3506,7 +3304,7 @@ SOFTWARE.
|
|
|
3506
3304
|
|
|
3507
3305
|
### jsdoc
|
|
3508
3306
|
|
|
3509
|
-
This product includes source derived from [jsdoc](https://github.com/jsdoc/jsdoc) ([v4.0.
|
|
3307
|
+
This product includes source derived from [jsdoc](https://github.com/jsdoc/jsdoc) ([v4.0.4](https://github.com/jsdoc/jsdoc/tree/v4.0.4)), distributed under the [Apache-2.0 License](https://github.com/jsdoc/jsdoc/blob/v4.0.4/LICENSE.md):
|
|
3510
3308
|
|
|
3511
3309
|
```
|
|
3512
3310
|
# License
|
|
@@ -3916,6 +3714,35 @@ This product includes source derived from [lockfile-lint](https://github.com/lir
|
|
|
3916
3714
|
limitations under the License.
|
|
3917
3715
|
```
|
|
3918
3716
|
|
|
3717
|
+
### neostandard
|
|
3718
|
+
|
|
3719
|
+
This product includes source derived from [neostandard](https://github.com/neostandard/neostandard) ([v0.12.0](https://github.com/neostandard/neostandard/tree/v0.12.0)), distributed under the [MIT License](https://github.com/neostandard/neostandard/blob/v0.12.0/LICENSE):
|
|
3720
|
+
|
|
3721
|
+
```
|
|
3722
|
+
The MIT License (MIT)
|
|
3723
|
+
|
|
3724
|
+
Copyright (c) 2024 neostandard contributors
|
|
3725
|
+
|
|
3726
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3727
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
3728
|
+
in the Software without restriction, including without limitation the rights
|
|
3729
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3730
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
3731
|
+
furnished to do so, subject to the following conditions:
|
|
3732
|
+
|
|
3733
|
+
The above copyright notice and this permission notice shall be included in all
|
|
3734
|
+
copies or substantial portions of the Software.
|
|
3735
|
+
|
|
3736
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3737
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3738
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3739
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3740
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3741
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
3742
|
+
SOFTWARE.
|
|
3743
|
+
|
|
3744
|
+
```
|
|
3745
|
+
|
|
3919
3746
|
### nock
|
|
3920
3747
|
|
|
3921
3748
|
This product includes source derived from [nock](https://github.com/nock/nock) ([v11.8.0](https://github.com/nock/nock/tree/v11.8.0)), distributed under the [MIT License](https://github.com/nock/nock/blob/v11.8.0/LICENSE):
|
|
@@ -4001,7 +3828,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
4001
3828
|
|
|
4002
3829
|
### self-cert
|
|
4003
3830
|
|
|
4004
|
-
This product includes source derived from [self-cert](https://github.com/jsumners/self-cert) ([v2.0.
|
|
3831
|
+
This product includes source derived from [self-cert](https://github.com/jsumners/self-cert) ([v2.0.1](https://github.com/jsumners/self-cert/tree/v2.0.1)), distributed under the [MIT License](https://github.com/jsumners/self-cert/blob/v2.0.1/Readme.md):
|
|
4005
3832
|
|
|
4006
3833
|
```
|
|
4007
3834
|
MIT License
|
|
@@ -4108,29 +3935,6 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
4108
3935
|
|
|
4109
3936
|
```
|
|
4110
3937
|
|
|
4111
|
-
### tap
|
|
4112
|
-
|
|
4113
|
-
This product includes source derived from [tap](https://github.com/tapjs/node-tap) ([v16.3.10](https://github.com/tapjs/node-tap/tree/v16.3.10)), distributed under the [ISC License](https://github.com/tapjs/node-tap/blob/v16.3.10/LICENSE):
|
|
4114
|
-
|
|
4115
|
-
```
|
|
4116
|
-
The ISC License
|
|
4117
|
-
|
|
4118
|
-
Copyright (c) 2011-2023 Isaac Z. Schlueter and Contributors
|
|
4119
|
-
|
|
4120
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
4121
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
4122
|
-
copyright notice and this permission notice appear in all copies.
|
|
4123
|
-
|
|
4124
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
4125
|
-
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
4126
|
-
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
4127
|
-
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
4128
|
-
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
4129
|
-
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
|
|
4130
|
-
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
4131
|
-
|
|
4132
|
-
```
|
|
4133
|
-
|
|
4134
3938
|
|
|
4135
3939
|
## optionalDependencies
|
|
4136
3940
|
|
package/api.js
CHANGED
|
@@ -905,7 +905,7 @@ API.prototype.startSegment = function startSegment(name, record, handler, callba
|
|
|
905
905
|
// Create the segment and call the handler.
|
|
906
906
|
const wrappedHandler = this.shim.record(handler, function handlerNamer(shim) {
|
|
907
907
|
return {
|
|
908
|
-
name
|
|
908
|
+
name,
|
|
909
909
|
recorder: record ? customRecorder : null,
|
|
910
910
|
callback: callback ? shim.FIRST : null,
|
|
911
911
|
promise: !callback
|
|
@@ -1301,6 +1301,7 @@ API.prototype.recordCustomEvent = function recordCustomEvent(eventType, attribut
|
|
|
1301
1301
|
}
|
|
1302
1302
|
|
|
1303
1303
|
const tx = this.agent.getTransaction()
|
|
1304
|
+
// eslint-disable-next-line sonarjs/pseudo-random
|
|
1304
1305
|
const priority = (tx && tx.priority) || Math.random()
|
|
1305
1306
|
this.agent.customEventAggregator.add([intrinsics, filteredAttributes], priority)
|
|
1306
1307
|
}
|
|
@@ -1326,9 +1327,9 @@ API.prototype.instrument = function instrument(moduleName, onRequire, onError) {
|
|
|
1326
1327
|
let opts = moduleName
|
|
1327
1328
|
if (typeof opts === 'string') {
|
|
1328
1329
|
opts = {
|
|
1329
|
-
moduleName
|
|
1330
|
-
onRequire
|
|
1331
|
-
onError
|
|
1330
|
+
moduleName,
|
|
1331
|
+
onRequire,
|
|
1332
|
+
onError
|
|
1332
1333
|
}
|
|
1333
1334
|
}
|
|
1334
1335
|
|
|
@@ -1391,9 +1392,9 @@ API.prototype.instrumentDatastore = function instrumentDatastore(moduleName, onR
|
|
|
1391
1392
|
let opts = moduleName
|
|
1392
1393
|
if (typeof opts === 'string') {
|
|
1393
1394
|
opts = {
|
|
1394
|
-
moduleName
|
|
1395
|
-
onRequire
|
|
1396
|
-
onError
|
|
1395
|
+
moduleName,
|
|
1396
|
+
onRequire,
|
|
1397
|
+
onError
|
|
1397
1398
|
}
|
|
1398
1399
|
}
|
|
1399
1400
|
|
|
@@ -1428,9 +1429,9 @@ API.prototype.instrumentWebframework = function instrumentWebframework(
|
|
|
1428
1429
|
let opts = moduleName
|
|
1429
1430
|
if (typeof opts === 'string') {
|
|
1430
1431
|
opts = {
|
|
1431
|
-
moduleName
|
|
1432
|
-
onRequire
|
|
1433
|
-
onError
|
|
1432
|
+
moduleName,
|
|
1433
|
+
onRequire,
|
|
1434
|
+
onError
|
|
1434
1435
|
}
|
|
1435
1436
|
}
|
|
1436
1437
|
|
|
@@ -1461,9 +1462,9 @@ API.prototype.instrumentMessages = function instrumentMessages(moduleName, onReq
|
|
|
1461
1462
|
let opts = moduleName
|
|
1462
1463
|
if (typeof opts === 'string') {
|
|
1463
1464
|
opts = {
|
|
1464
|
-
moduleName
|
|
1465
|
-
onRequire
|
|
1466
|
-
onError
|
|
1465
|
+
moduleName,
|
|
1466
|
+
onRequire,
|
|
1467
|
+
onError
|
|
1467
1468
|
}
|
|
1468
1469
|
}
|
|
1469
1470
|
|
package/bin/test-naming-rules.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
/*
|
|
3
3
|
* Copyright 2020 New Relic Corporation. All rights reserved.
|
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
'use strict'
|
|
8
|
-
/* eslint-disable no-console */
|
|
9
8
|
|
|
10
9
|
const fs = require('fs')
|
|
11
10
|
const path = require('path')
|
|
@@ -110,7 +109,7 @@ function run(opts) {
|
|
|
110
109
|
|
|
111
110
|
function onAppliedRule(rule, newValue, oldValue) {
|
|
112
111
|
appliedRules.push({
|
|
113
|
-
rule
|
|
112
|
+
rule,
|
|
114
113
|
original: oldValue,
|
|
115
114
|
normalized: newValue
|
|
116
115
|
})
|
package/index.js
CHANGED
|
@@ -108,10 +108,8 @@ function initialize() {
|
|
|
108
108
|
message = 'New Relic for Node.js was unable to bootstrap itself due to an error:'
|
|
109
109
|
logger.error(error, message)
|
|
110
110
|
|
|
111
|
-
/* eslint-disable no-console */
|
|
112
111
|
console.error(message)
|
|
113
112
|
console.error(error.stack)
|
|
114
|
-
/* eslint-enable no-console */
|
|
115
113
|
}
|
|
116
114
|
|
|
117
115
|
const api = agent ? initApi({ agent, apiPath: 'api' }) : initApi({ apiPath: 'stub_api' })
|
|
@@ -172,10 +170,8 @@ function createAgent(config) {
|
|
|
172
170
|
const errorMessage = 'New Relic for Node.js halted startup due to an error:'
|
|
173
171
|
logger.error(error, errorMessage)
|
|
174
172
|
|
|
175
|
-
/* eslint-disable no-console */
|
|
176
173
|
console.error(errorMessage)
|
|
177
174
|
console.error(error.stack)
|
|
178
|
-
/* eslint-enable no-console */
|
|
179
175
|
|
|
180
176
|
return
|
|
181
177
|
}
|
package/lib/agent.js
CHANGED
|
@@ -635,7 +635,7 @@ Agent.prototype.reconfigure = function reconfigure(configuration) {
|
|
|
635
635
|
* @fires Agent#stopping
|
|
636
636
|
*/
|
|
637
637
|
Agent.prototype.setState = function setState(newState) {
|
|
638
|
-
if (!
|
|
638
|
+
if (!Object.prototype.hasOwnProperty.call(STATES, newState)) {
|
|
639
639
|
throw new TypeError('Invalid state ' + newState)
|
|
640
640
|
}
|
|
641
641
|
|
|
@@ -719,6 +719,7 @@ Agent.prototype._addEventFromTransaction = function _addEventFromTransaction(tx)
|
|
|
719
719
|
|
|
720
720
|
const event = [intrinsicAttributes, userAttributes, agentAttributes]
|
|
721
721
|
|
|
722
|
+
// eslint-disable-next-line sonarjs/pseudo-random
|
|
722
723
|
this.transactionEventAggregator.add(event, tx.priority || Math.random())
|
|
723
724
|
}
|
|
724
725
|
|
|
@@ -251,7 +251,7 @@ class Aggregator extends EventEmitter {
|
|
|
251
251
|
}
|
|
252
252
|
|
|
253
253
|
// This can be synchronous for the serverless collector.
|
|
254
|
-
this.collector.send(this.method, payload, (
|
|
254
|
+
this.collector.send(this.method, payload, (_, response) => {
|
|
255
255
|
if (response && response.retainData) {
|
|
256
256
|
this._merge(data)
|
|
257
257
|
}
|
|
@@ -291,7 +291,7 @@ class Aggregator extends EventEmitter {
|
|
|
291
291
|
|
|
292
292
|
const data = this._getMergeData()
|
|
293
293
|
if (this.isAsync) {
|
|
294
|
-
this._toPayload((
|
|
294
|
+
this._toPayload((_, payload) => {
|
|
295
295
|
this._runSend(data, payload)
|
|
296
296
|
})
|
|
297
297
|
} else {
|
|
@@ -7,10 +7,6 @@
|
|
|
7
7
|
|
|
8
8
|
const Aggregator = require('./base-aggregator')
|
|
9
9
|
|
|
10
|
-
class TraceAggregator extends Aggregator {
|
|
11
|
-
constructor(opts, collector, harvester) {
|
|
12
|
-
super(opts, collector, harvester)
|
|
13
|
-
}
|
|
14
|
-
}
|
|
10
|
+
class TraceAggregator extends Aggregator {}
|
|
15
11
|
|
|
16
12
|
module.exports = TraceAggregator
|