newrelic 12.9.0 → 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 -21
- package/THIRD_PARTY_NOTICES.md +42 -214
- 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 +9 -11
- 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 +2 -3
- 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 +4 -0
- 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 +7 -8
- package/stub_api.js +1 -2
package/NEWS.md
CHANGED
|
@@ -1,24 +1,48 @@
|
|
|
1
|
-
### v12.
|
|
2
|
-
|
|
3
|
-
#### Features
|
|
4
|
-
|
|
5
|
-
* Added
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
|
|
17
|
-
#### Tests
|
|
18
|
-
|
|
19
|
-
* Removed `
|
|
20
|
-
|
|
21
|
-
|
|
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
|
+
|
|
22
46
|
### v12.8.2 (2024-12-09)
|
|
23
47
|
|
|
24
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)
|
|
@@ -90,7 +89,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
90
89
|
|
|
91
90
|
### @grpc/grpc-js
|
|
92
91
|
|
|
93
|
-
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):
|
|
94
93
|
|
|
95
94
|
```
|
|
96
95
|
Apache License
|
|
@@ -614,7 +613,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
614
613
|
|
|
615
614
|
### https-proxy-agent
|
|
616
615
|
|
|
617
|
-
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):
|
|
618
617
|
|
|
619
618
|
```
|
|
620
619
|
(The MIT License)
|
|
@@ -643,7 +642,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
643
642
|
|
|
644
643
|
### import-in-the-middle
|
|
645
644
|
|
|
646
|
-
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):
|
|
647
646
|
|
|
648
647
|
```
|
|
649
648
|
Apache License
|
|
@@ -1040,7 +1039,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
1040
1039
|
|
|
1041
1040
|
### winston-transport
|
|
1042
1041
|
|
|
1043
|
-
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):
|
|
1044
1043
|
|
|
1045
1044
|
```
|
|
1046
1045
|
The MIT License (MIT)
|
|
@@ -1073,7 +1072,7 @@ SOFTWARE.
|
|
|
1073
1072
|
|
|
1074
1073
|
### @aws-sdk/client-s3
|
|
1075
1074
|
|
|
1076
|
-
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):
|
|
1077
1076
|
|
|
1078
1077
|
```
|
|
1079
1078
|
Apache License
|
|
@@ -1282,7 +1281,7 @@ This product includes source derived from [@aws-sdk/client-s3](https://github.co
|
|
|
1282
1281
|
|
|
1283
1282
|
### @aws-sdk/s3-request-presigner
|
|
1284
1283
|
|
|
1285
|
-
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):
|
|
1286
1285
|
|
|
1287
1286
|
```
|
|
1288
1287
|
Apache License
|
|
@@ -1549,7 +1548,7 @@ SOFTWARE.
|
|
|
1549
1548
|
|
|
1550
1549
|
### @newrelic/eslint-config
|
|
1551
1550
|
|
|
1552
|
-
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):
|
|
1553
1552
|
|
|
1554
1553
|
```
|
|
1555
1554
|
Apache License
|
|
@@ -2709,7 +2708,7 @@ THE SOFTWARE.
|
|
|
2709
2708
|
|
|
2710
2709
|
### aws-sdk
|
|
2711
2710
|
|
|
2712
|
-
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):
|
|
2713
2712
|
|
|
2714
2713
|
```
|
|
2715
2714
|
|
|
@@ -3108,36 +3107,9 @@ SOFTWARE.
|
|
|
3108
3107
|
|
|
3109
3108
|
```
|
|
3110
3109
|
|
|
3111
|
-
### eslint-plugin-disable
|
|
3112
|
-
|
|
3113
|
-
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):
|
|
3114
|
-
|
|
3115
|
-
```
|
|
3116
|
-
Copyright (c) 2015 Michael Radionov (https://github.com/mradionov)
|
|
3117
|
-
|
|
3118
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
3119
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
3120
|
-
in the Software without restriction, including without limitation the rights
|
|
3121
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
3122
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
3123
|
-
furnished to do so, subject to the following conditions:
|
|
3124
|
-
|
|
3125
|
-
The above copyright notice and this permission notice shall be included in
|
|
3126
|
-
all copies or substantial portions of the Software.
|
|
3127
|
-
|
|
3128
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
3129
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
3130
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
3131
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
3132
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
3133
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
3134
|
-
THE SOFTWARE.
|
|
3135
|
-
|
|
3136
|
-
```
|
|
3137
|
-
|
|
3138
3110
|
### eslint-plugin-jsdoc
|
|
3139
3111
|
|
|
3140
|
-
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):
|
|
3141
3113
|
|
|
3142
3114
|
```
|
|
3143
3115
|
Copyright (c) 2018, Gajus Kuizinas (http://gajus.com/)
|
|
@@ -3167,182 +3139,9 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
3167
3139
|
|
|
3168
3140
|
```
|
|
3169
3141
|
|
|
3170
|
-
### eslint-plugin-sonarjs
|
|
3171
|
-
|
|
3172
|
-
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):
|
|
3173
|
-
|
|
3174
|
-
```
|
|
3175
|
-
GNU LESSER GENERAL PUBLIC LICENSE
|
|
3176
|
-
Version 3, 29 June 2007
|
|
3177
|
-
|
|
3178
|
-
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
|
|
3179
|
-
Everyone is permitted to copy and distribute verbatim copies
|
|
3180
|
-
of this license document, but changing it is not allowed.
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
This version of the GNU Lesser General Public License incorporates
|
|
3184
|
-
the terms and conditions of version 3 of the GNU General Public
|
|
3185
|
-
License, supplemented by the additional permissions listed below.
|
|
3186
|
-
|
|
3187
|
-
0. Additional Definitions.
|
|
3188
|
-
|
|
3189
|
-
As used herein, "this License" refers to version 3 of the GNU Lesser
|
|
3190
|
-
General Public License, and the "GNU GPL" refers to version 3 of the GNU
|
|
3191
|
-
General Public License.
|
|
3192
|
-
|
|
3193
|
-
"The Library" refers to a covered work governed by this License,
|
|
3194
|
-
other than an Application or a Combined Work as defined below.
|
|
3195
|
-
|
|
3196
|
-
An "Application" is any work that makes use of an interface provided
|
|
3197
|
-
by the Library, but which is not otherwise based on the Library.
|
|
3198
|
-
Defining a subclass of a class defined by the Library is deemed a mode
|
|
3199
|
-
of using an interface provided by the Library.
|
|
3200
|
-
|
|
3201
|
-
A "Combined Work" is a work produced by combining or linking an
|
|
3202
|
-
Application with the Library. The particular version of the Library
|
|
3203
|
-
with which the Combined Work was made is also called the "Linked
|
|
3204
|
-
Version".
|
|
3205
|
-
|
|
3206
|
-
The "Minimal Corresponding Source" for a Combined Work means the
|
|
3207
|
-
Corresponding Source for the Combined Work, excluding any source code
|
|
3208
|
-
for portions of the Combined Work that, considered in isolation, are
|
|
3209
|
-
based on the Application, and not on the Linked Version.
|
|
3210
|
-
|
|
3211
|
-
The "Corresponding Application Code" for a Combined Work means the
|
|
3212
|
-
object code and/or source code for the Application, including any data
|
|
3213
|
-
and utility programs needed for reproducing the Combined Work from the
|
|
3214
|
-
Application, but excluding the System Libraries of the Combined Work.
|
|
3215
|
-
|
|
3216
|
-
1. Exception to Section 3 of the GNU GPL.
|
|
3217
|
-
|
|
3218
|
-
You may convey a covered work under sections 3 and 4 of this License
|
|
3219
|
-
without being bound by section 3 of the GNU GPL.
|
|
3220
|
-
|
|
3221
|
-
2. Conveying Modified Versions.
|
|
3222
|
-
|
|
3223
|
-
If you modify a copy of the Library, and, in your modifications, a
|
|
3224
|
-
facility refers to a function or data to be supplied by an Application
|
|
3225
|
-
that uses the facility (other than as an argument passed when the
|
|
3226
|
-
facility is invoked), then you may convey a copy of the modified
|
|
3227
|
-
version:
|
|
3228
|
-
|
|
3229
|
-
a) under this License, provided that you make a good faith effort to
|
|
3230
|
-
ensure that, in the event an Application does not supply the
|
|
3231
|
-
function or data, the facility still operates, and performs
|
|
3232
|
-
whatever part of its purpose remains meaningful, or
|
|
3233
|
-
|
|
3234
|
-
b) under the GNU GPL, with none of the additional permissions of
|
|
3235
|
-
this License applicable to that copy.
|
|
3236
|
-
|
|
3237
|
-
3. Object Code Incorporating Material from Library Header Files.
|
|
3238
|
-
|
|
3239
|
-
The object code form of an Application may incorporate material from
|
|
3240
|
-
a header file that is part of the Library. You may convey such object
|
|
3241
|
-
code under terms of your choice, provided that, if the incorporated
|
|
3242
|
-
material is not limited to numerical parameters, data structure
|
|
3243
|
-
layouts and accessors, or small macros, inline functions and templates
|
|
3244
|
-
(ten or fewer lines in length), you do both of the following:
|
|
3245
|
-
|
|
3246
|
-
a) Give prominent notice with each copy of the object code that the
|
|
3247
|
-
Library is used in it and that the Library and its use are
|
|
3248
|
-
covered by this License.
|
|
3249
|
-
|
|
3250
|
-
b) Accompany the object code with a copy of the GNU GPL and this license
|
|
3251
|
-
document.
|
|
3252
|
-
|
|
3253
|
-
4. Combined Works.
|
|
3254
|
-
|
|
3255
|
-
You may convey a Combined Work under terms of your choice that,
|
|
3256
|
-
taken together, effectively do not restrict modification of the
|
|
3257
|
-
portions of the Library contained in the Combined Work and reverse
|
|
3258
|
-
engineering for debugging such modifications, if you also do each of
|
|
3259
|
-
the following:
|
|
3260
|
-
|
|
3261
|
-
a) Give prominent notice with each copy of the Combined Work that
|
|
3262
|
-
the Library is used in it and that the Library and its use are
|
|
3263
|
-
covered by this License.
|
|
3264
|
-
|
|
3265
|
-
b) Accompany the Combined Work with a copy of the GNU GPL and this license
|
|
3266
|
-
document.
|
|
3267
|
-
|
|
3268
|
-
c) For a Combined Work that displays copyright notices during
|
|
3269
|
-
execution, include the copyright notice for the Library among
|
|
3270
|
-
these notices, as well as a reference directing the user to the
|
|
3271
|
-
copies of the GNU GPL and this license document.
|
|
3272
|
-
|
|
3273
|
-
d) Do one of the following:
|
|
3274
|
-
|
|
3275
|
-
0) Convey the Minimal Corresponding Source under the terms of this
|
|
3276
|
-
License, and the Corresponding Application Code in a form
|
|
3277
|
-
suitable for, and under terms that permit, the user to
|
|
3278
|
-
recombine or relink the Application with a modified version of
|
|
3279
|
-
the Linked Version to produce a modified Combined Work, in the
|
|
3280
|
-
manner specified by section 6 of the GNU GPL for conveying
|
|
3281
|
-
Corresponding Source.
|
|
3282
|
-
|
|
3283
|
-
1) Use a suitable shared library mechanism for linking with the
|
|
3284
|
-
Library. A suitable mechanism is one that (a) uses at run time
|
|
3285
|
-
a copy of the Library already present on the user's computer
|
|
3286
|
-
system, and (b) will operate properly with a modified version
|
|
3287
|
-
of the Library that is interface-compatible with the Linked
|
|
3288
|
-
Version.
|
|
3289
|
-
|
|
3290
|
-
e) Provide Installation Information, but only if you would otherwise
|
|
3291
|
-
be required to provide such information under section 6 of the
|
|
3292
|
-
GNU GPL, and only to the extent that such information is
|
|
3293
|
-
necessary to install and execute a modified version of the
|
|
3294
|
-
Combined Work produced by recombining or relinking the
|
|
3295
|
-
Application with a modified version of the Linked Version. (If
|
|
3296
|
-
you use option 4d0, the Installation Information must accompany
|
|
3297
|
-
the Minimal Corresponding Source and Corresponding Application
|
|
3298
|
-
Code. If you use option 4d1, you must provide the Installation
|
|
3299
|
-
Information in the manner specified by section 6 of the GNU GPL
|
|
3300
|
-
for conveying Corresponding Source.)
|
|
3301
|
-
|
|
3302
|
-
5. Combined Libraries.
|
|
3303
|
-
|
|
3304
|
-
You may place library facilities that are a work based on the
|
|
3305
|
-
Library side by side in a single library together with other library
|
|
3306
|
-
facilities that are not Applications and are not covered by this
|
|
3307
|
-
License, and convey such a combined library under terms of your
|
|
3308
|
-
choice, if you do both of the following:
|
|
3309
|
-
|
|
3310
|
-
a) Accompany the combined library with a copy of the same work based
|
|
3311
|
-
on the Library, uncombined with any other library facilities,
|
|
3312
|
-
conveyed under the terms of this License.
|
|
3313
|
-
|
|
3314
|
-
b) Give prominent notice with the combined library that part of it
|
|
3315
|
-
is a work based on the Library, and explaining where to find the
|
|
3316
|
-
accompanying uncombined form of the same work.
|
|
3317
|
-
|
|
3318
|
-
6. Revised Versions of the GNU Lesser General Public License.
|
|
3319
|
-
|
|
3320
|
-
The Free Software Foundation may publish revised and/or new versions
|
|
3321
|
-
of the GNU Lesser General Public License from time to time. Such new
|
|
3322
|
-
versions will be similar in spirit to the present version, but may
|
|
3323
|
-
differ in detail to address new problems or concerns.
|
|
3324
|
-
|
|
3325
|
-
Each version is given a distinguishing version number. If the
|
|
3326
|
-
Library as you received it specifies that a certain numbered version
|
|
3327
|
-
of the GNU Lesser General Public License "or any later version"
|
|
3328
|
-
applies to it, you have the option of following the terms and
|
|
3329
|
-
conditions either of that published version or of any later version
|
|
3330
|
-
published by the Free Software Foundation. If the Library as you
|
|
3331
|
-
received it does not specify a version number of the GNU Lesser
|
|
3332
|
-
General Public License, you may choose any version of the GNU Lesser
|
|
3333
|
-
General Public License ever published by the Free Software Foundation.
|
|
3334
|
-
|
|
3335
|
-
If the Library as you received it specifies that a proxy can decide
|
|
3336
|
-
whether future versions of the GNU Lesser General Public License shall
|
|
3337
|
-
apply, that proxy's public statement of acceptance of any version is
|
|
3338
|
-
permanent authorization for you to choose that version for the
|
|
3339
|
-
Library.
|
|
3340
|
-
|
|
3341
|
-
```
|
|
3342
|
-
|
|
3343
3142
|
### eslint
|
|
3344
3143
|
|
|
3345
|
-
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):
|
|
3346
3145
|
|
|
3347
3146
|
```
|
|
3348
3147
|
Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
|
|
@@ -3369,7 +3168,7 @@ THE SOFTWARE.
|
|
|
3369
3168
|
|
|
3370
3169
|
### express
|
|
3371
3170
|
|
|
3372
|
-
This product includes source derived from [express](https://github.com/expressjs/express) ([v4.21.
|
|
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):
|
|
3373
3172
|
|
|
3374
3173
|
```
|
|
3375
3174
|
(The MIT License)
|
|
@@ -3505,7 +3304,7 @@ SOFTWARE.
|
|
|
3505
3304
|
|
|
3506
3305
|
### jsdoc
|
|
3507
3306
|
|
|
3508
|
-
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):
|
|
3509
3308
|
|
|
3510
3309
|
```
|
|
3511
3310
|
# License
|
|
@@ -3915,6 +3714,35 @@ This product includes source derived from [lockfile-lint](https://github.com/lir
|
|
|
3915
3714
|
limitations under the License.
|
|
3916
3715
|
```
|
|
3917
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
|
+
|
|
3918
3746
|
### nock
|
|
3919
3747
|
|
|
3920
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):
|
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
|
package/lib/attributes.js
CHANGED
|
@@ -22,7 +22,7 @@ class Attributes {
|
|
|
22
22
|
* @param {string} scope
|
|
23
23
|
* The scope of the attributes this will collect. Must be `transaction` or
|
|
24
24
|
* `segment`.
|
|
25
|
-
* @param {number} [limit
|
|
25
|
+
* @param {number} [limit]
|
|
26
26
|
* The maximum number of attributes to retrieve for each destination.
|
|
27
27
|
*/
|
|
28
28
|
constructor(scope, limit = Infinity) {
|
|
@@ -64,9 +64,9 @@ class Attributes {
|
|
|
64
64
|
*/
|
|
65
65
|
get(dest) {
|
|
66
66
|
const attrs = Object.create(null)
|
|
67
|
-
// eslint-disable-next-line guard-for-in
|
|
68
67
|
for (const key in this.attributes) {
|
|
69
68
|
const attr = this.attributes[key]
|
|
69
|
+
// eslint-disable-next-line sonarjs/bitwise-operators
|
|
70
70
|
if (!(attr.destinations & dest)) {
|
|
71
71
|
continue
|
|
72
72
|
}
|
|
@@ -104,7 +104,7 @@ class Attributes {
|
|
|
104
104
|
* @param {DESTINATIONS} destinations - The default destinations for this key.
|
|
105
105
|
* @param {string} key - The attribute name.
|
|
106
106
|
* @param {string} value - The attribute value.
|
|
107
|
-
* @param {boolean} [truncateExempt
|
|
107
|
+
* @param {boolean} [truncateExempt] - Flag marking value exempt from truncation
|
|
108
108
|
*/
|
|
109
109
|
addAttribute(destinations, key, value, truncateExempt = false) {
|
|
110
110
|
if (this.attributeCount + 1 > this.limit) {
|
|
@@ -180,6 +180,6 @@ function makeFilter(scope) {
|
|
|
180
180
|
}
|
|
181
181
|
|
|
182
182
|
module.exports = {
|
|
183
|
-
Attributes
|
|
184
|
-
MAXIMUM_CUSTOM_ATTRIBUTES
|
|
183
|
+
Attributes,
|
|
184
|
+
MAXIMUM_CUSTOM_ATTRIBUTES
|
|
185
185
|
}
|