newrelic 11.23.2 → 12.1.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 +111 -42
- package/README.md +31 -0
- package/THIRD_PARTY_NOTICES.md +280 -32
- package/index.js +1 -10
- package/lib/context-manager/create-context-manager.js +0 -11
- package/lib/feature_flags.js +1 -2
- package/lib/instrumentation/@node-redis/client.js +1 -1
- package/lib/instrumentation/amqplib/amqplib.js +4 -243
- package/lib/instrumentation/amqplib/channel-model.js +129 -0
- package/lib/instrumentation/amqplib/channel.js +70 -0
- package/lib/instrumentation/amqplib/utils.js +141 -0
- package/lib/instrumentation/aws-sdk/v3/sqs.js +17 -1
- package/lib/instrumentation/core/globals.js +0 -5
- package/lib/instrumentation/core/timers.js +1 -72
- package/lib/instrumentation/kafkajs/consumer.js +64 -48
- package/lib/instrumentation/kafkajs/index.js +13 -13
- package/lib/instrumentation/kafkajs/producer.js +68 -52
- package/lib/instrumentation/kafkajs/record-linking-metrics.js +17 -0
- package/lib/instrumentation/kafkajs/record-method-metric.js +21 -0
- package/lib/instrumentation/mongodb.js +9 -10
- package/lib/instrumentation/nextjs/next-server.js +178 -0
- package/lib/instrumentation/nextjs/nr-hooks.js +22 -0
- package/lib/instrumentation/nextjs/utils.js +71 -0
- package/lib/instrumentation/pino/pino.js +11 -2
- package/lib/instrumentation/redis.js +13 -59
- package/lib/instrumentations.js +1 -1
- package/lib/metrics/names.js +1 -2
- package/lib/shim/message-shim/consume.js +9 -4
- package/lib/shim/message-shim/index.js +7 -14
- package/lib/shim/message-shim/subscribe-consume.js +25 -6
- package/lib/shim/specs/params/queue-message.js +2 -0
- package/lib/spans/span-event.js +17 -11
- package/lib/spans/streaming-span-event.js +15 -13
- package/lib/symbols.js +1 -0
- package/load-externals.js +15 -0
- package/package.json +12 -11
- package/lib/context-manager/legacy-context-manager.js +0 -66
- package/lib/instrumentation/core/async-hooks.js +0 -132
- package/lib/instrumentation/director.js +0 -64
- package/lib/instrumentation/mongodb/v2-mongo.js +0 -118
- package/lib/instrumentation/mongodb/v3-mongo.js +0 -85
package/THIRD_PARTY_NOTICES.md
CHANGED
|
@@ -44,6 +44,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
44
44
|
* [ajv](#ajv)
|
|
45
45
|
* [async](#async)
|
|
46
46
|
* [aws-sdk](#aws-sdk)
|
|
47
|
+
* [borp](#borp)
|
|
47
48
|
* [c8](#c8)
|
|
48
49
|
* [clean-jsdoc-theme](#clean-jsdoc-theme)
|
|
49
50
|
* [commander](#commander)
|
|
@@ -70,6 +71,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
70
71
|
* [proxyquire](#proxyquire)
|
|
71
72
|
* [rfdc](#rfdc)
|
|
72
73
|
* [rimraf](#rimraf)
|
|
74
|
+
* [self-cert](#self-cert)
|
|
73
75
|
* [should](#should)
|
|
74
76
|
* [sinon](#sinon)
|
|
75
77
|
* [superagent](#superagent)
|
|
@@ -91,7 +93,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
|
|
|
91
93
|
|
|
92
94
|
### @grpc/grpc-js
|
|
93
95
|
|
|
94
|
-
This product includes source derived from [@grpc/grpc-js](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js) ([v1.
|
|
96
|
+
This product includes source derived from [@grpc/grpc-js](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js) ([v1.11.1](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/tree/v1.11.1)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/blob/v1.11.1/LICENSE):
|
|
95
97
|
|
|
96
98
|
```
|
|
97
99
|
Apache License
|
|
@@ -539,7 +541,7 @@ SOFTWARE.
|
|
|
539
541
|
|
|
540
542
|
### @newrelic/security-agent
|
|
541
543
|
|
|
542
|
-
This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v1.
|
|
544
|
+
This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v1.4.0](https://github.com/newrelic/csec-node-agent/tree/v1.4.0)), distributed under the [UNKNOWN License](https://github.com/newrelic/csec-node-agent/blob/v1.4.0/LICENSE):
|
|
543
545
|
|
|
544
546
|
```
|
|
545
547
|
## New Relic Software License v1.0
|
|
@@ -645,7 +647,7 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
645
647
|
|
|
646
648
|
### https-proxy-agent
|
|
647
649
|
|
|
648
|
-
This product includes source derived from [https-proxy-agent](https://github.com/TooTallNate/proxy-agents) ([v7.0.
|
|
650
|
+
This product includes source derived from [https-proxy-agent](https://github.com/TooTallNate/proxy-agents) ([v7.0.5](https://github.com/TooTallNate/proxy-agents/tree/v7.0.5)), distributed under the [MIT License](https://github.com/TooTallNate/proxy-agents/blob/v7.0.5/LICENSE):
|
|
649
651
|
|
|
650
652
|
```
|
|
651
653
|
(The MIT License)
|
|
@@ -674,22 +676,210 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
674
676
|
|
|
675
677
|
### import-in-the-middle
|
|
676
678
|
|
|
677
|
-
This product includes source derived from [import-in-the-middle](https://github.com/
|
|
679
|
+
This product includes source derived from [import-in-the-middle](https://github.com/nodejs/import-in-the-middle) ([v1.9.1](https://github.com/nodejs/import-in-the-middle/tree/v1.9.1)), distributed under the [Apache-2.0 License](https://github.com/nodejs/import-in-the-middle/blob/v1.9.1/LICENSE):
|
|
678
680
|
|
|
679
681
|
```
|
|
680
|
-
|
|
682
|
+
Apache License
|
|
683
|
+
Version 2.0, January 2004
|
|
684
|
+
http://www.apache.org/licenses/
|
|
681
685
|
|
|
682
|
-
|
|
683
|
-
you may not use this file except in compliance with the License.
|
|
684
|
-
You may obtain a copy of the License at
|
|
686
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
685
687
|
|
|
686
|
-
|
|
688
|
+
1. Definitions.
|
|
687
689
|
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
690
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
691
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
692
|
+
|
|
693
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
694
|
+
the copyright owner that is granting the License.
|
|
695
|
+
|
|
696
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
697
|
+
other entities that control, are controlled by, or are under common
|
|
698
|
+
control with that entity. For the purposes of this definition,
|
|
699
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
700
|
+
direction or management of such entity, whether by contract or
|
|
701
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
702
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
703
|
+
|
|
704
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
705
|
+
exercising permissions granted by this License.
|
|
706
|
+
|
|
707
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
708
|
+
including but not limited to software source code, documentation
|
|
709
|
+
source, and configuration files.
|
|
710
|
+
|
|
711
|
+
"Object" form shall mean any form resulting from mechanical
|
|
712
|
+
transformation or translation of a Source form, including but
|
|
713
|
+
not limited to compiled object code, generated documentation,
|
|
714
|
+
and conversions to other media types.
|
|
715
|
+
|
|
716
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
717
|
+
Object form, made available under the License, as indicated by a
|
|
718
|
+
copyright notice that is included in or attached to the work
|
|
719
|
+
(an example is provided in the Appendix below).
|
|
720
|
+
|
|
721
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
722
|
+
form, that is based on (or derived from) the Work and for which the
|
|
723
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
724
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
725
|
+
of this License, Derivative Works shall not include works that remain
|
|
726
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
727
|
+
the Work and Derivative Works thereof.
|
|
728
|
+
|
|
729
|
+
"Contribution" shall mean any work of authorship, including
|
|
730
|
+
the original version of the Work and any modifications or additions
|
|
731
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
732
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
733
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
734
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
735
|
+
means any form of electronic, verbal, or written communication sent
|
|
736
|
+
to the Licensor or its representatives, including but not limited to
|
|
737
|
+
communication on electronic mailing lists, source code control systems,
|
|
738
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
739
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
740
|
+
excluding communication that is conspicuously marked or otherwise
|
|
741
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
742
|
+
|
|
743
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
744
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
745
|
+
subsequently incorporated within the Work.
|
|
746
|
+
|
|
747
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
748
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
749
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
750
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
751
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
752
|
+
Work and such Derivative Works in Source or Object form.
|
|
753
|
+
|
|
754
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
755
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
756
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
757
|
+
(except as stated in this section) patent license to make, have made,
|
|
758
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
759
|
+
where such license applies only to those patent claims licensable
|
|
760
|
+
by such Contributor that are necessarily infringed by their
|
|
761
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
762
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
763
|
+
institute patent litigation against any entity (including a
|
|
764
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
765
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
766
|
+
or contributory patent infringement, then any patent licenses
|
|
767
|
+
granted to You under this License for that Work shall terminate
|
|
768
|
+
as of the date such litigation is filed.
|
|
769
|
+
|
|
770
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
771
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
772
|
+
modifications, and in Source or Object form, provided that You
|
|
773
|
+
meet the following conditions:
|
|
774
|
+
|
|
775
|
+
(a) You must give any other recipients of the Work or
|
|
776
|
+
Derivative Works a copy of this License; and
|
|
777
|
+
|
|
778
|
+
(b) You must cause any modified files to carry prominent notices
|
|
779
|
+
stating that You changed the files; and
|
|
780
|
+
|
|
781
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
782
|
+
that You distribute, all copyright, patent, trademark, and
|
|
783
|
+
attribution notices from the Source form of the Work,
|
|
784
|
+
excluding those notices that do not pertain to any part of
|
|
785
|
+
the Derivative Works; and
|
|
786
|
+
|
|
787
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
788
|
+
distribution, then any Derivative Works that You distribute must
|
|
789
|
+
include a readable copy of the attribution notices contained
|
|
790
|
+
within such NOTICE file, excluding those notices that do not
|
|
791
|
+
pertain to any part of the Derivative Works, in at least one
|
|
792
|
+
of the following places: within a NOTICE text file distributed
|
|
793
|
+
as part of the Derivative Works; within the Source form or
|
|
794
|
+
documentation, if provided along with the Derivative Works; or,
|
|
795
|
+
within a display generated by the Derivative Works, if and
|
|
796
|
+
wherever such third-party notices normally appear. The contents
|
|
797
|
+
of the NOTICE file are for informational purposes only and
|
|
798
|
+
do not modify the License. You may add Your own attribution
|
|
799
|
+
notices within Derivative Works that You distribute, alongside
|
|
800
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
801
|
+
that such additional attribution notices cannot be construed
|
|
802
|
+
as modifying the License.
|
|
803
|
+
|
|
804
|
+
You may add Your own copyright statement to Your modifications and
|
|
805
|
+
may provide additional or different license terms and conditions
|
|
806
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
807
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
808
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
809
|
+
the conditions stated in this License.
|
|
810
|
+
|
|
811
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
812
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
813
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
814
|
+
this License, without any additional terms or conditions.
|
|
815
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
816
|
+
the terms of any separate license agreement you may have executed
|
|
817
|
+
with Licensor regarding such Contributions.
|
|
818
|
+
|
|
819
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
820
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
821
|
+
except as required for reasonable and customary use in describing the
|
|
822
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
823
|
+
|
|
824
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
825
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
826
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
827
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
828
|
+
implied, including, without limitation, any warranties or conditions
|
|
829
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
830
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
831
|
+
appropriateness of using or redistributing the Work and assume any
|
|
832
|
+
risks associated with Your exercise of permissions under this License.
|
|
833
|
+
|
|
834
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
835
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
836
|
+
unless required by applicable law (such as deliberate and grossly
|
|
837
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
838
|
+
liable to You for damages, including any direct, indirect, special,
|
|
839
|
+
incidental, or consequential damages of any character arising as a
|
|
840
|
+
result of this License or out of the use or inability to use the
|
|
841
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
842
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
843
|
+
other commercial damages or losses), even if such Contributor
|
|
844
|
+
has been advised of the possibility of such damages.
|
|
845
|
+
|
|
846
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
847
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
848
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
849
|
+
or other liability obligations and/or rights consistent with this
|
|
850
|
+
License. However, in accepting such obligations, You may act only
|
|
851
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
852
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
853
|
+
defend, and hold each Contributor harmless for any liability
|
|
854
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
855
|
+
of your accepting any such warranty or additional liability.
|
|
856
|
+
|
|
857
|
+
END OF TERMS AND CONDITIONS
|
|
858
|
+
|
|
859
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
860
|
+
|
|
861
|
+
To apply the Apache License to your work, attach the following
|
|
862
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
863
|
+
replaced with your own identifying information. (Don't include
|
|
864
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
865
|
+
comment syntax for the file format. We also recommend that a
|
|
866
|
+
file or class name and description of purpose be included on the
|
|
867
|
+
same "printed page" as the copyright notice for easier
|
|
868
|
+
identification within third-party archives.
|
|
869
|
+
|
|
870
|
+
Copyright [yyyy] [name of copyright owner]
|
|
871
|
+
|
|
872
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
873
|
+
you may not use this file except in compliance with the License.
|
|
874
|
+
You may obtain a copy of the License at
|
|
875
|
+
|
|
876
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
877
|
+
|
|
878
|
+
Unless required by applicable law or agreed to in writing, software
|
|
879
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
880
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
881
|
+
See the License for the specific language governing permissions and
|
|
882
|
+
limitations under the License.
|
|
693
883
|
|
|
694
884
|
```
|
|
695
885
|
|
|
@@ -830,7 +1020,7 @@ IN THE SOFTWARE.
|
|
|
830
1020
|
|
|
831
1021
|
### semver
|
|
832
1022
|
|
|
833
|
-
This product includes source derived from [semver](https://github.com/npm/node-semver) ([v7.6.
|
|
1023
|
+
This product includes source derived from [semver](https://github.com/npm/node-semver) ([v7.6.3](https://github.com/npm/node-semver/tree/v7.6.3)), distributed under the [ISC License](https://github.com/npm/node-semver/blob/v7.6.3/LICENSE):
|
|
834
1024
|
|
|
835
1025
|
```
|
|
836
1026
|
The ISC License
|
|
@@ -853,7 +1043,7 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
853
1043
|
|
|
854
1044
|
### winston-transport
|
|
855
1045
|
|
|
856
|
-
This product includes source derived from [winston-transport](https://github.com/winstonjs/winston-transport) ([v4.7.
|
|
1046
|
+
This product includes source derived from [winston-transport](https://github.com/winstonjs/winston-transport) ([v4.7.1](https://github.com/winstonjs/winston-transport/tree/v4.7.1)), distributed under the [MIT License](https://github.com/winstonjs/winston-transport/blob/v4.7.1/LICENSE):
|
|
857
1047
|
|
|
858
1048
|
```
|
|
859
1049
|
The MIT License (MIT)
|
|
@@ -886,7 +1076,7 @@ SOFTWARE.
|
|
|
886
1076
|
|
|
887
1077
|
### @aws-sdk/client-s3
|
|
888
1078
|
|
|
889
|
-
This product includes source derived from [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3) ([v3.
|
|
1079
|
+
This product includes source derived from [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3) ([v3.616.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.616.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.616.0/LICENSE):
|
|
890
1080
|
|
|
891
1081
|
```
|
|
892
1082
|
Apache License
|
|
@@ -1095,7 +1285,7 @@ This product includes source derived from [@aws-sdk/client-s3](https://github.co
|
|
|
1095
1285
|
|
|
1096
1286
|
### @aws-sdk/s3-request-presigner
|
|
1097
1287
|
|
|
1098
|
-
This product includes source derived from [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3) ([v3.
|
|
1288
|
+
This product includes source derived from [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3) ([v3.616.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.616.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.616.0/LICENSE):
|
|
1099
1289
|
|
|
1100
1290
|
```
|
|
1101
1291
|
Apache License
|
|
@@ -1750,7 +1940,7 @@ This product includes source derived from [@newrelic/newrelic-oss-cli](https://g
|
|
|
1750
1940
|
|
|
1751
1941
|
### @newrelic/test-utilities
|
|
1752
1942
|
|
|
1753
|
-
This product includes source derived from [@newrelic/test-utilities](https://github.com/newrelic/node-test-utilities) ([v8.
|
|
1943
|
+
This product includes source derived from [@newrelic/test-utilities](https://github.com/newrelic/node-test-utilities) ([v8.7.0](https://github.com/newrelic/node-test-utilities/tree/v8.7.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-test-utilities/blob/v8.7.0/LICENSE):
|
|
1754
1944
|
|
|
1755
1945
|
```
|
|
1756
1946
|
Apache License
|
|
@@ -1989,7 +2179,7 @@ THE SOFTWARE.
|
|
|
1989
2179
|
|
|
1990
2180
|
### @slack/bolt
|
|
1991
2181
|
|
|
1992
|
-
This product includes source derived from [@slack/bolt](https://github.com/slackapi/bolt) ([v3.
|
|
2182
|
+
This product includes source derived from [@slack/bolt](https://github.com/slackapi/bolt) ([v3.19.0](https://github.com/slackapi/bolt/tree/v3.19.0)), distributed under the [MIT License](https://github.com/slackapi/bolt/blob/v3.19.0/LICENSE):
|
|
1993
2183
|
|
|
1994
2184
|
```
|
|
1995
2185
|
The MIT License (MIT)
|
|
@@ -2493,7 +2683,7 @@ THE SOFTWARE.
|
|
|
2493
2683
|
|
|
2494
2684
|
### aws-sdk
|
|
2495
2685
|
|
|
2496
|
-
This product includes source derived from [aws-sdk](https://github.com/aws/aws-sdk-js) ([v2.
|
|
2686
|
+
This product includes source derived from [aws-sdk](https://github.com/aws/aws-sdk-js) ([v2.1659.0](https://github.com/aws/aws-sdk-js/tree/v2.1659.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js/blob/v2.1659.0/LICENSE.txt):
|
|
2497
2687
|
|
|
2498
2688
|
```
|
|
2499
2689
|
|
|
@@ -2701,6 +2891,35 @@ This product includes source derived from [aws-sdk](https://github.com/aws/aws-s
|
|
|
2701
2891
|
|
|
2702
2892
|
```
|
|
2703
2893
|
|
|
2894
|
+
### borp
|
|
2895
|
+
|
|
2896
|
+
This product includes source derived from [borp](https://github.com/mcollina/borp) ([v0.17.0](https://github.com/mcollina/borp/tree/v0.17.0)), distributed under the [MIT License](https://github.com/mcollina/borp/blob/v0.17.0/LICENSE):
|
|
2897
|
+
|
|
2898
|
+
```
|
|
2899
|
+
MIT License
|
|
2900
|
+
|
|
2901
|
+
Copyright (c) 2023 Matteo Collina
|
|
2902
|
+
|
|
2903
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
2904
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
2905
|
+
in the Software without restriction, including without limitation the rights
|
|
2906
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
2907
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
2908
|
+
furnished to do so, subject to the following conditions:
|
|
2909
|
+
|
|
2910
|
+
The above copyright notice and this permission notice shall be included in all
|
|
2911
|
+
copies or substantial portions of the Software.
|
|
2912
|
+
|
|
2913
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
2914
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
2915
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
2916
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
2917
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
2918
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
2919
|
+
SOFTWARE.
|
|
2920
|
+
|
|
2921
|
+
```
|
|
2922
|
+
|
|
2704
2923
|
### c8
|
|
2705
2924
|
|
|
2706
2925
|
This product includes source derived from [c8](https://github.com/bcoe/c8) ([v8.0.1](https://github.com/bcoe/c8/tree/v8.0.1)), distributed under the [ISC License](https://github.com/bcoe/c8/blob/v8.0.1/LICENSE.txt):
|
|
@@ -2892,7 +3111,7 @@ THE SOFTWARE.
|
|
|
2892
3111
|
|
|
2893
3112
|
### eslint-plugin-jsdoc
|
|
2894
3113
|
|
|
2895
|
-
This product includes source derived from [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) ([v48.
|
|
3114
|
+
This product includes source derived from [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) ([v48.8.0](https://github.com/gajus/eslint-plugin-jsdoc/tree/v48.8.0)), distributed under the [BSD-3-Clause License](https://github.com/gajus/eslint-plugin-jsdoc/blob/v48.8.0/LICENSE):
|
|
2896
3115
|
|
|
2897
3116
|
```
|
|
2898
3117
|
Copyright (c) 2018, Gajus Kuizinas (http://gajus.com/)
|
|
@@ -3474,7 +3693,7 @@ SOFTWARE.
|
|
|
3474
3693
|
|
|
3475
3694
|
### lockfile-lint
|
|
3476
3695
|
|
|
3477
|
-
This product includes source derived from [lockfile-lint](https://github.com/lirantal/lockfile-lint) ([v4.
|
|
3696
|
+
This product includes source derived from [lockfile-lint](https://github.com/lirantal/lockfile-lint) ([v4.14.0](https://github.com/lirantal/lockfile-lint/tree/v4.14.0)), distributed under the [Apache-2.0 License](https://github.com/lirantal/lockfile-lint/blob/v4.14.0/LICENSE):
|
|
3478
3697
|
|
|
3479
3698
|
```
|
|
3480
3699
|
|
|
@@ -3701,18 +3920,31 @@ SOFTWARE.
|
|
|
3701
3920
|
|
|
3702
3921
|
### proxy
|
|
3703
3922
|
|
|
3704
|
-
This product includes source derived from [proxy](https://github.com/TooTallNate/proxy-agents) ([v2.
|
|
3923
|
+
This product includes source derived from [proxy](https://github.com/TooTallNate/proxy-agents) ([v2.2.0](https://github.com/TooTallNate/proxy-agents/tree/v2.2.0)), distributed under the [MIT License](https://github.com/TooTallNate/proxy-agents/blob/v2.2.0/LICENSE):
|
|
3705
3924
|
|
|
3706
3925
|
```
|
|
3707
|
-
MIT License
|
|
3926
|
+
(The MIT License)
|
|
3708
3927
|
|
|
3709
|
-
Copyright (c)
|
|
3928
|
+
Copyright (c) 2013 Nathan Rajlich <nathan@tootallnate.net>
|
|
3710
3929
|
|
|
3711
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
3930
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
3931
|
+
a copy of this software and associated documentation files (the
|
|
3932
|
+
'Software'), to deal in the Software without restriction, including
|
|
3933
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
3934
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
3935
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
3936
|
+
the following conditions:
|
|
3712
3937
|
|
|
3713
|
-
The above copyright notice and this permission notice shall be
|
|
3938
|
+
The above copyright notice and this permission notice shall be
|
|
3939
|
+
included in all copies or substantial portions of the Software.
|
|
3714
3940
|
|
|
3715
|
-
THE SOFTWARE IS PROVIDED
|
|
3941
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
|
3942
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
3943
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
|
3944
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
|
3945
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
|
3946
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
|
3947
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
3716
3948
|
```
|
|
3717
3949
|
|
|
3718
3950
|
### proxyquire
|
|
@@ -3748,7 +3980,7 @@ OTHER DEALINGS IN THE SOFTWARE.
|
|
|
3748
3980
|
|
|
3749
3981
|
### rfdc
|
|
3750
3982
|
|
|
3751
|
-
This product includes source derived from [rfdc](https://github.com/davidmarkclements/rfdc) ([v1.
|
|
3983
|
+
This product includes source derived from [rfdc](https://github.com/davidmarkclements/rfdc) ([v1.4.1](https://github.com/davidmarkclements/rfdc/tree/v1.4.1)), distributed under the [MIT License](https://github.com/davidmarkclements/rfdc/blob/v1.4.1/LICENSE):
|
|
3752
3984
|
|
|
3753
3985
|
```
|
|
3754
3986
|
Copyright 2019 "David Mark Clements <david.mark.clements@gmail.com>"
|
|
@@ -3792,6 +4024,22 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
3792
4024
|
|
|
3793
4025
|
```
|
|
3794
4026
|
|
|
4027
|
+
### self-cert
|
|
4028
|
+
|
|
4029
|
+
This product includes source derived from [self-cert](https://github.com/jsumners/self-cert) ([v2.0.0](https://github.com/jsumners/self-cert/tree/v2.0.0)), distributed under the [MIT License](https://github.com/jsumners/self-cert/blob/v2.0.0/Readme.md):
|
|
4030
|
+
|
|
4031
|
+
```
|
|
4032
|
+
MIT License
|
|
4033
|
+
|
|
4034
|
+
Copyright (c) <year> <copyright holders>
|
|
4035
|
+
|
|
4036
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
4037
|
+
|
|
4038
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
4039
|
+
|
|
4040
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
4041
|
+
```
|
|
4042
|
+
|
|
3795
4043
|
### should
|
|
3796
4044
|
|
|
3797
4045
|
This product includes source derived from [should](https://github.com/shouldjs/should.js) ([v13.2.3](https://github.com/shouldjs/should.js/tree/v13.2.3)), distributed under the [MIT License](https://github.com/shouldjs/should.js/blob/v13.2.3/LICENSE):
|
|
@@ -3822,7 +4070,7 @@ THE SOFTWARE.
|
|
|
3822
4070
|
|
|
3823
4071
|
### sinon
|
|
3824
4072
|
|
|
3825
|
-
This product includes source derived from [sinon](https://github.com/sinonjs/sinon) ([
|
|
4073
|
+
This product includes source derived from [sinon](https://github.com/sinonjs/sinon) ([v5.1.1](https://github.com/sinonjs/sinon/tree/v5.1.1)), distributed under the [BSD-3-Clause License](https://github.com/sinonjs/sinon/blob/v5.1.1/LICENSE):
|
|
3826
4074
|
|
|
3827
4075
|
```
|
|
3828
4076
|
(The BSD License)
|
|
@@ -3967,7 +4215,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
|
3967
4215
|
|
|
3968
4216
|
### @newrelic/native-metrics
|
|
3969
4217
|
|
|
3970
|
-
This product includes source derived from [@newrelic/native-metrics](https://github.com/newrelic/node-native-metrics) ([v10.
|
|
4218
|
+
This product includes source derived from [@newrelic/native-metrics](https://github.com/newrelic/node-native-metrics) ([v10.2.0](https://github.com/newrelic/node-native-metrics/tree/v10.2.0)), distributed under the [Apache-2.0 License](https://github.com/newrelic/node-native-metrics/blob/v10.2.0/LICENSE):
|
|
3971
4219
|
|
|
3972
4220
|
```
|
|
3973
4221
|
Apache License
|
package/index.js
CHANGED
|
@@ -17,7 +17,6 @@ const featureFlags = require('./lib/feature_flags').prerelease
|
|
|
17
17
|
const psemver = require('./lib/util/process-version')
|
|
18
18
|
let logger = require('./lib/logger') // Gets re-loaded after initialization.
|
|
19
19
|
const NAMES = require('./lib/metrics/names')
|
|
20
|
-
const isESMSupported = psemver.satisfies('>=16.2.0')
|
|
21
20
|
|
|
22
21
|
const pkgJSON = require('./package.json')
|
|
23
22
|
logger.info(
|
|
@@ -246,15 +245,7 @@ function recordLoaderMetric(agent) {
|
|
|
246
245
|
(arg === '--loader' || arg === '--experimental-loader') &&
|
|
247
246
|
process.execArgv[index + 1] === 'newrelic/esm-loader.mjs'
|
|
248
247
|
) {
|
|
249
|
-
|
|
250
|
-
agent.metrics.getOrCreateMetric(NAMES.FEATURES.ESM.LOADER).incrementCallCount()
|
|
251
|
-
} else {
|
|
252
|
-
agent.metrics.getOrCreateMetric(NAMES.FEATURES.ESM.UNSUPPORTED_LOADER)
|
|
253
|
-
logger.warn(
|
|
254
|
-
'New Relic for Node.js ESM loader requires a version of Node >= v16.12.0; your version is %s. Instrumentation will not be registered.',
|
|
255
|
-
process.version
|
|
256
|
-
)
|
|
257
|
-
}
|
|
248
|
+
agent.metrics.getOrCreateMetric(NAMES.FEATURES.ESM.LOADER).incrementCallCount()
|
|
258
249
|
}
|
|
259
250
|
})
|
|
260
251
|
|
|
@@ -16,10 +16,6 @@ const logger = require('../logger')
|
|
|
16
16
|
* the current configuration.
|
|
17
17
|
*/
|
|
18
18
|
function createContextManager(config) {
|
|
19
|
-
if (config.feature_flag.legacy_context_manager) {
|
|
20
|
-
return createLegacyContextManager(config)
|
|
21
|
-
}
|
|
22
|
-
|
|
23
19
|
return createAsyncLocalContextManager(config)
|
|
24
20
|
}
|
|
25
21
|
|
|
@@ -30,11 +26,4 @@ function createAsyncLocalContextManager(config) {
|
|
|
30
26
|
return new AsyncLocalContextManager(config)
|
|
31
27
|
}
|
|
32
28
|
|
|
33
|
-
function createLegacyContextManager(config) {
|
|
34
|
-
logger.info('Using LegacyContextManager')
|
|
35
|
-
|
|
36
|
-
const LegacyContextManager = require('./legacy-context-manager')
|
|
37
|
-
return new LegacyContextManager(config)
|
|
38
|
-
}
|
|
39
|
-
|
|
40
29
|
module.exports = createContextManager
|
package/lib/feature_flags.js
CHANGED
|
@@ -15,7 +15,6 @@ exports.prerelease = {
|
|
|
15
15
|
reverse_naming_rules: false,
|
|
16
16
|
undici_async_tracking: true,
|
|
17
17
|
unresolved_promise_cleanup: true,
|
|
18
|
-
legacy_context_manager: false,
|
|
19
18
|
kafkajs_instrumentation: false
|
|
20
19
|
}
|
|
21
20
|
|
|
@@ -43,4 +42,4 @@ exports.released = [
|
|
|
43
42
|
]
|
|
44
43
|
|
|
45
44
|
// flags that are no longer used for unreleased features
|
|
46
|
-
exports.unreleased = ['unreleased']
|
|
45
|
+
exports.unreleased = ['unreleased', 'legacy_context_manager']
|
|
@@ -93,7 +93,7 @@ function getRedisParams(clientOpts) {
|
|
|
93
93
|
// see: https://github.com/redis/node-redis/blob/5576a0db492cda2cd88e09881bc330aa956dd0f5/packages/client/lib/client/index.ts#L160
|
|
94
94
|
if (clientOpts?.url) {
|
|
95
95
|
const parsedURL = new URL(clientOpts.url)
|
|
96
|
-
clientOpts.socket = { host: parsedURL.hostname }
|
|
96
|
+
clientOpts.socket = Object.assign({}, clientOpts.socket, { host: parsedURL.hostname })
|
|
97
97
|
if (parsedURL.port) {
|
|
98
98
|
clientOpts.socket.port = parsedURL.port
|
|
99
99
|
}
|