newrelic 12.12.0 → 12.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/NEWS.md CHANGED
@@ -1,3 +1,46 @@
1
+ ### v12.14.0 (2025-02-18)
2
+
3
+ #### Features
4
+
5
+ * Added support for region-prefixed Bedrock models ([#2947](https://github.com/newrelic/node-newrelic/pull/2947)) ([6acf535](https://github.com/newrelic/node-newrelic/commit/6acf5354d1e7f6786da88c0078699e82a714551d))
6
+ * Added attribute reconciliation for message producer spans ([#2942](https://github.com/newrelic/node-newrelic/pull/2942)) ([a9ba396](https://github.com/newrelic/node-newrelic/commit/a9ba39613c78b89c047ca35a218c2eedbb01e3d2))
7
+ * Added timeslice metrics for synthesized consumer segments ([#2938](https://github.com/newrelic/node-newrelic/pull/2938)) ([acfe953](https://github.com/newrelic/node-newrelic/commit/acfe953cf7a656fafb69104384c72f94ddc13000))
8
+
9
+ #### Bug fixes
10
+
11
+ * Fixed queueing of logs from child loggers ([#2945](https://github.com/newrelic/node-newrelic/pull/2945)) ([888cfe8](https://github.com/newrelic/node-newrelic/commit/888cfe84a1ffaf0287682cc9099a2fa762f7a37f))
12
+ * Fixed undici/fetch instrumentation to properly assign the parent-id portion of the `traceparent` header on outgoing requests to the active http external span id ([#2951](https://github.com/newrelic/node-newrelic/pull/2951)) ([bc714cf](https://github.com/newrelic/node-newrelic/commit/bc714cfa8fe6754abf25eb556b8f804c9982f986))
13
+ * Updated `api.recordLogEvent` to no longer truncate the message key in log event ([#2949](https://github.com/newrelic/node-newrelic/pull/2949)) ([8dd557b](https://github.com/newrelic/node-newrelic/commit/8dd557b4dfca2505b7e9f7f030ab094a6ae8019a))
14
+ * Thanks for your contribution @rChaoz 🎉
15
+
16
+ #### Documentation
17
+
18
+ * Updated compatibility report ([#2948](https://github.com/newrelic/node-newrelic/pull/2948)) ([8e32ed7](https://github.com/newrelic/node-newrelic/commit/8e32ed7d7bc456a0693485e7bdef955c25ead29a))
19
+
20
+ ### v12.13.0 (2025-02-12)
21
+
22
+ #### Features
23
+
24
+ * Added timeslice metrics for synthesized server segments ([#2924](https://github.com/newrelic/node-newrelic/pull/2924)) ([f404585](https://github.com/newrelic/node-newrelic/commit/f4045855a1cdbfb74e3217daf8bfa125aa6fe2e4))
25
+ * Added timeslice metrics for synthesized producer segments ([#2939](https://github.com/newrelic/node-newrelic/pull/2939)) ([6832637](https://github.com/newrelic/node-newrelic/commit/68326377dcd23b574abae7c323ff93bc05c525ed))
26
+ * Added timeslice metrics for synthesized database segments ([#2922](https://github.com/newrelic/node-newrelic/pull/2922)) ([8606f78](https://github.com/newrelic/node-newrelic/commit/8606f789772b7651d0c46ad50dad3a1da74e5e9c))
27
+ * Propagate agent root context when opentelemetry `ROOT_CONTEXT` is passed in to trace propagator.([#2940](https://github.com/newrelic/node-newrelic/pull/2940)) ([b85111c](https://github.com/newrelic/node-newrelic/commit/b85111c46797dfbf399faf973e7a3e0ea6bbdc28))
28
+ * Added logic to handle properly naming and ending transactions for server spans.
29
+ * Provided ability to disable instrumentation for core Node.js libraries ([#2927](https://github.com/newrelic/node-newrelic/pull/2927)) ([2d232f1](https://github.com/newrelic/node-newrelic/commit/2d232f16c167e5f84b7b7898a6c5410d9cece55e))
30
+
31
+ #### Bug fixes
32
+
33
+ * Fixed `api.getTraceMetadata` to handle when there is an active transaction but not active segment ([#2944](https://github.com/newrelic/node-newrelic/pull/2944)) ([6db3b4d](https://github.com/newrelic/node-newrelic/commit/6db3b4d53a077a9738dd72d46e1ba1cee0d6af3f))
34
+
35
+ #### Documentation
36
+
37
+ * Updated compatibility report ([#2920](https://github.com/newrelic/node-newrelic/pull/2920)) ([c7ae8be](https://github.com/newrelic/node-newrelic/commit/c7ae8befafa4c91fab6804cd95e20f5a93546ea4))
38
+
39
+ #### Miscellaneous chores
40
+
41
+ * Localized OTEL attribute constants ([#2928](https://github.com/newrelic/node-newrelic/pull/2928)) ([965c41b](https://github.com/newrelic/node-newrelic/commit/965c41b3e64805ac14ae4dd36120b018ec5899f4))
42
+ * Updated import-in-the-middle version ([#2923](https://github.com/newrelic/node-newrelic/pull/2923)) ([aa2781f](https://github.com/newrelic/node-newrelic/commit/aa2781fd9c7bed08d590e33682729a92f21f43a5))
43
+
1
44
  ### v12.12.0 (2025-02-05)
2
45
 
3
46
  #### Features
@@ -21,7 +21,6 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
21
21
  * [@opentelemetry/core](#opentelemetrycore)
22
22
  * [@opentelemetry/resources](#opentelemetryresources)
23
23
  * [@opentelemetry/sdk-trace-base](#opentelemetrysdk-trace-base)
24
- * [@opentelemetry/semantic-conventions](#opentelemetrysemantic-conventions)
25
24
  * [@tyriar/fibonacci-heap](#tyriarfibonacci-heap)
26
25
  * [concat-stream](#concat-stream)
27
26
  * [https-proxy-agent](#https-proxy-agent)
@@ -93,7 +92,7 @@ code, the source code can be found at [https://github.com/newrelic/node-newrelic
93
92
 
94
93
  ### @grpc/grpc-js
95
94
 
96
- This product includes source derived from [@grpc/grpc-js](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js) ([v1.12.5](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/tree/v1.12.5)), distributed under the [Apache-2.0 License](https://github.com/grpc/grpc-node/tree/master/packages/grpc-js/blob/v1.12.5/LICENSE):
95
+ 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):
97
96
 
98
97
  ```
99
98
  Apache License
@@ -511,48 +510,10 @@ This product includes source derived from [@grpc/proto-loader](https://github.co
511
510
 
512
511
  ### @newrelic/security-agent
513
512
 
514
- This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v2.3.0](https://github.com/newrelic/csec-node-agent/tree/v2.3.0)), distributed under the [UNKNOWN License](https://github.com/newrelic/csec-node-agent/blob/v2.3.0/LICENSE):
513
+ This product includes source derived from [@newrelic/security-agent](https://github.com/newrelic/csec-node-agent) ([v2.3.1](https://github.com/newrelic/csec-node-agent/tree/v2.3.1)), distributed under the [UNKNOWN License](undefined):
515
514
 
516
515
  ```
517
- ## New Relic Software License v1.0
518
-
519
- ### Acceptance
520
-
521
- This software license applies to the repositories, directories, or files that it has been associated with (referred to here as “the Software”). In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
522
-
523
- ### License
524
-
525
- New Relic grants you a license for the Software to do everything you might do with the Software that would otherwise infringe the New Relic’s copyrights or patent rights, conditional on only using the Software for Permitted Purposes and compliance with all other Restrictions on Use. All other uses are prohibited.
526
-
527
- ### Permitted Purposes
528
-
529
- The Software is solely for use with New Relic’s proprietary SaaS service (“New Relic Service”). To use the Software you must have a valid and active subscription agreement to the New Relic Service. You may not use the Software in conjunction with any other similar service.
530
-
531
- ### Restrictions on Use
532
-
533
- 1. The use of the Software is limited to you and your organization. You cannot expose the Software to third parties via the network or use the Software on behalf of anyone else.
534
- 2. You cannot modify the Software. You can compile or link the Software into your programs as described in the New Relic Documentation, but you cannot otherwise make any derivative works of the Software.
535
- 3. You cannot reverse engineer or decompile the Software.
536
- 4. You cannot use the Software for competitive analysis, benchmarking, or any purposes that compete with or are intended to compete with New Relic.
537
- 5. You cannot remove or obscure any proprietary notices in the Software.
538
- 6. You can only copy the Software to the extent needed to use the Software within your organization. You cannot distribute the Software to any third parties.
539
- 7. You can only use the New Relic Services and the Software consistent with your subscription agreement with New Relic, New Relic’s product Documentation and Acceptable Use Policy.
540
-
541
- ### Intellectual Property
542
-
543
- Any feedback provided to New Relic about the Software, including feedback provided as source code, comments, or other copyrightable or patentable material, is provided to New Relic under the terms of the Apache Software License, version 2. If you do not provide attribution information or a copy of the license with your feedback, you waive the performance of those requirements of the Apache License with respect to New Relic. The license grant regarding any feedback is irrevocable and persists past the termination of this license.
544
-
545
- ### Termination
546
-
547
- This license terminates when the Software stops being provided by New Relic or when described by the New Relic subscription agreement, whichever comes first. When this license terminates, you have a commercially reasonable time to either remove the Software from your systems.
548
-
549
- ### Other Terms
550
-
551
- 1. The Software is provided “AS IS.” New Relic disclaims all warranties, whether express, implied, statutory or otherwise, including warranties of merchantability, fitness for a particular purpose, title, and noninfringement.
552
- 2. To the full extent permitted by law, New Relic will have no liability arising from or related to the Software or from this license for any direct, indirect, special, incidental, or consequential damages of any kind, even if advised of their possibility in advance, and regardless of legal theory (whether contract, tort, negligence, strict liability or otherwise).
553
- 3. The Software may contain third-party software, including open source software (“OSS”). The third party software is governed by its own license and subject to its own terms, disclosed in the provided licensing information associated with the third party components. If a source code disclosure is required under the terms of the license covering any OSS component, the source code can be requested of New Relic by emailing opensource@newrelic.com.
554
-
555
-
516
+ undefined
556
517
  ```
557
518
 
558
519
  ### @opentelemetry/api
@@ -1391,215 +1352,6 @@ This product includes source derived from [@opentelemetry/sdk-trace-base](https:
1391
1352
 
1392
1353
  ```
1393
1354
 
1394
- ### @opentelemetry/semantic-conventions
1395
-
1396
- This product includes source derived from [@opentelemetry/semantic-conventions](https://github.com/open-telemetry/opentelemetry-js) ([v1.28.0](https://github.com/open-telemetry/opentelemetry-js/tree/v1.28.0)), distributed under the [Apache-2.0 License](https://github.com/open-telemetry/opentelemetry-js/blob/v1.28.0/LICENSE):
1397
-
1398
- ```
1399
- Apache License
1400
- Version 2.0, January 2004
1401
- http://www.apache.org/licenses/
1402
-
1403
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1404
-
1405
- 1. Definitions.
1406
-
1407
- "License" shall mean the terms and conditions for use, reproduction,
1408
- and distribution as defined by Sections 1 through 9 of this document.
1409
-
1410
- "Licensor" shall mean the copyright owner or entity authorized by
1411
- the copyright owner that is granting the License.
1412
-
1413
- "Legal Entity" shall mean the union of the acting entity and all
1414
- other entities that control, are controlled by, or are under common
1415
- control with that entity. For the purposes of this definition,
1416
- "control" means (i) the power, direct or indirect, to cause the
1417
- direction or management of such entity, whether by contract or
1418
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
1419
- outstanding shares, or (iii) beneficial ownership of such entity.
1420
-
1421
- "You" (or "Your") shall mean an individual or Legal Entity
1422
- exercising permissions granted by this License.
1423
-
1424
- "Source" form shall mean the preferred form for making modifications,
1425
- including but not limited to software source code, documentation
1426
- source, and configuration files.
1427
-
1428
- "Object" form shall mean any form resulting from mechanical
1429
- transformation or translation of a Source form, including but
1430
- not limited to compiled object code, generated documentation,
1431
- and conversions to other media types.
1432
-
1433
- "Work" shall mean the work of authorship, whether in Source or
1434
- Object form, made available under the License, as indicated by a
1435
- copyright notice that is included in or attached to the work
1436
- (an example is provided in the Appendix below).
1437
-
1438
- "Derivative Works" shall mean any work, whether in Source or Object
1439
- form, that is based on (or derived from) the Work and for which the
1440
- editorial revisions, annotations, elaborations, or other modifications
1441
- represent, as a whole, an original work of authorship. For the purposes
1442
- of this License, Derivative Works shall not include works that remain
1443
- separable from, or merely link (or bind by name) to the interfaces of,
1444
- the Work and Derivative Works thereof.
1445
-
1446
- "Contribution" shall mean any work of authorship, including
1447
- the original version of the Work and any modifications or additions
1448
- to that Work or Derivative Works thereof, that is intentionally
1449
- submitted to Licensor for inclusion in the Work by the copyright owner
1450
- or by an individual or Legal Entity authorized to submit on behalf of
1451
- the copyright owner. For the purposes of this definition, "submitted"
1452
- means any form of electronic, verbal, or written communication sent
1453
- to the Licensor or its representatives, including but not limited to
1454
- communication on electronic mailing lists, source code control systems,
1455
- and issue tracking systems that are managed by, or on behalf of, the
1456
- Licensor for the purpose of discussing and improving the Work, but
1457
- excluding communication that is conspicuously marked or otherwise
1458
- designated in writing by the copyright owner as "Not a Contribution."
1459
-
1460
- "Contributor" shall mean Licensor and any individual or Legal Entity
1461
- on behalf of whom a Contribution has been received by Licensor and
1462
- subsequently incorporated within the Work.
1463
-
1464
- 2. Grant of Copyright License. Subject to the terms and conditions of
1465
- this License, each Contributor hereby grants to You a perpetual,
1466
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1467
- copyright license to reproduce, prepare Derivative Works of,
1468
- publicly display, publicly perform, sublicense, and distribute the
1469
- Work and such Derivative Works in Source or Object form.
1470
-
1471
- 3. Grant of Patent License. Subject to the terms and conditions of
1472
- this License, each Contributor hereby grants to You a perpetual,
1473
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1474
- (except as stated in this section) patent license to make, have made,
1475
- use, offer to sell, sell, import, and otherwise transfer the Work,
1476
- where such license applies only to those patent claims licensable
1477
- by such Contributor that are necessarily infringed by their
1478
- Contribution(s) alone or by combination of their Contribution(s)
1479
- with the Work to which such Contribution(s) was submitted. If You
1480
- institute patent litigation against any entity (including a
1481
- cross-claim or counterclaim in a lawsuit) alleging that the Work
1482
- or a Contribution incorporated within the Work constitutes direct
1483
- or contributory patent infringement, then any patent licenses
1484
- granted to You under this License for that Work shall terminate
1485
- as of the date such litigation is filed.
1486
-
1487
- 4. Redistribution. You may reproduce and distribute copies of the
1488
- Work or Derivative Works thereof in any medium, with or without
1489
- modifications, and in Source or Object form, provided that You
1490
- meet the following conditions:
1491
-
1492
- (a) You must give any other recipients of the Work or
1493
- Derivative Works a copy of this License; and
1494
-
1495
- (b) You must cause any modified files to carry prominent notices
1496
- stating that You changed the files; and
1497
-
1498
- (c) You must retain, in the Source form of any Derivative Works
1499
- that You distribute, all copyright, patent, trademark, and
1500
- attribution notices from the Source form of the Work,
1501
- excluding those notices that do not pertain to any part of
1502
- the Derivative Works; and
1503
-
1504
- (d) If the Work includes a "NOTICE" text file as part of its
1505
- distribution, then any Derivative Works that You distribute must
1506
- include a readable copy of the attribution notices contained
1507
- within such NOTICE file, excluding those notices that do not
1508
- pertain to any part of the Derivative Works, in at least one
1509
- of the following places: within a NOTICE text file distributed
1510
- as part of the Derivative Works; within the Source form or
1511
- documentation, if provided along with the Derivative Works; or,
1512
- within a display generated by the Derivative Works, if and
1513
- wherever such third-party notices normally appear. The contents
1514
- of the NOTICE file are for informational purposes only and
1515
- do not modify the License. You may add Your own attribution
1516
- notices within Derivative Works that You distribute, alongside
1517
- or as an addendum to the NOTICE text from the Work, provided
1518
- that such additional attribution notices cannot be construed
1519
- as modifying the License.
1520
-
1521
- You may add Your own copyright statement to Your modifications and
1522
- may provide additional or different license terms and conditions
1523
- for use, reproduction, or distribution of Your modifications, or
1524
- for any such Derivative Works as a whole, provided Your use,
1525
- reproduction, and distribution of the Work otherwise complies with
1526
- the conditions stated in this License.
1527
-
1528
- 5. Submission of Contributions. Unless You explicitly state otherwise,
1529
- any Contribution intentionally submitted for inclusion in the Work
1530
- by You to the Licensor shall be under the terms and conditions of
1531
- this License, without any additional terms or conditions.
1532
- Notwithstanding the above, nothing herein shall supersede or modify
1533
- the terms of any separate license agreement you may have executed
1534
- with Licensor regarding such Contributions.
1535
-
1536
- 6. Trademarks. This License does not grant permission to use the trade
1537
- names, trademarks, service marks, or product names of the Licensor,
1538
- except as required for reasonable and customary use in describing the
1539
- origin of the Work and reproducing the content of the NOTICE file.
1540
-
1541
- 7. Disclaimer of Warranty. Unless required by applicable law or
1542
- agreed to in writing, Licensor provides the Work (and each
1543
- Contributor provides its Contributions) on an "AS IS" BASIS,
1544
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1545
- implied, including, without limitation, any warranties or conditions
1546
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1547
- PARTICULAR PURPOSE. You are solely responsible for determining the
1548
- appropriateness of using or redistributing the Work and assume any
1549
- risks associated with Your exercise of permissions under this License.
1550
-
1551
- 8. Limitation of Liability. In no event and under no legal theory,
1552
- whether in tort (including negligence), contract, or otherwise,
1553
- unless required by applicable law (such as deliberate and grossly
1554
- negligent acts) or agreed to in writing, shall any Contributor be
1555
- liable to You for damages, including any direct, indirect, special,
1556
- incidental, or consequential damages of any character arising as a
1557
- result of this License or out of the use or inability to use the
1558
- Work (including but not limited to damages for loss of goodwill,
1559
- work stoppage, computer failure or malfunction, or any and all
1560
- other commercial damages or losses), even if such Contributor
1561
- has been advised of the possibility of such damages.
1562
-
1563
- 9. Accepting Warranty or Additional Liability. While redistributing
1564
- the Work or Derivative Works thereof, You may choose to offer,
1565
- and charge a fee for, acceptance of support, warranty, indemnity,
1566
- or other liability obligations and/or rights consistent with this
1567
- License. However, in accepting such obligations, You may act only
1568
- on Your own behalf and on Your sole responsibility, not on behalf
1569
- of any other Contributor, and only if You agree to indemnify,
1570
- defend, and hold each Contributor harmless for any liability
1571
- incurred by, or claims asserted against, such Contributor by reason
1572
- of your accepting any such warranty or additional liability.
1573
-
1574
- END OF TERMS AND CONDITIONS
1575
-
1576
- APPENDIX: How to apply the Apache License to your work.
1577
-
1578
- To apply the Apache License to your work, attach the following
1579
- boilerplate notice, with the fields enclosed by brackets "[]"
1580
- replaced with your own identifying information. (Don't include
1581
- the brackets!) The text should be enclosed in the appropriate
1582
- comment syntax for the file format. We also recommend that a
1583
- file or class name and description of purpose be included on the
1584
- same "printed page" as the copyright notice for easier
1585
- identification within third-party archives.
1586
-
1587
- Copyright [yyyy] [name of copyright owner]
1588
-
1589
- Licensed under the Apache License, Version 2.0 (the "License");
1590
- you may not use this file except in compliance with the License.
1591
- You may obtain a copy of the License at
1592
-
1593
- http://www.apache.org/licenses/LICENSE-2.0
1594
-
1595
- Unless required by applicable law or agreed to in writing, software
1596
- distributed under the License is distributed on an "AS IS" BASIS,
1597
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1598
- See the License for the specific language governing permissions and
1599
- limitations under the License.
1600
-
1601
- ```
1602
-
1603
1355
  ### @tyriar/fibonacci-heap
1604
1356
 
1605
1357
  This product includes source derived from [@tyriar/fibonacci-heap](https://github.com/gwtw/ts-fibonacci-heap) ([v2.0.9](https://github.com/gwtw/ts-fibonacci-heap/tree/v2.0.9)), distributed under the [MIT License](https://github.com/gwtw/ts-fibonacci-heap/blob/v2.0.9/LICENSE):
@@ -1691,211 +1443,10 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1691
1443
 
1692
1444
  ### import-in-the-middle
1693
1445
 
1694
- 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):
1446
+ This product includes source derived from [import-in-the-middle](https://github.com/nodejs/import-in-the-middle) ([v1.13.0](https://github.com/nodejs/import-in-the-middle/tree/v1.13.0)), distributed under the [Apache-2.0 License](undefined):
1695
1447
 
1696
1448
  ```
1697
- Apache License
1698
- Version 2.0, January 2004
1699
- http://www.apache.org/licenses/
1700
-
1701
- TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1702
-
1703
- 1. Definitions.
1704
-
1705
- "License" shall mean the terms and conditions for use, reproduction,
1706
- and distribution as defined by Sections 1 through 9 of this document.
1707
-
1708
- "Licensor" shall mean the copyright owner or entity authorized by
1709
- the copyright owner that is granting the License.
1710
-
1711
- "Legal Entity" shall mean the union of the acting entity and all
1712
- other entities that control, are controlled by, or are under common
1713
- control with that entity. For the purposes of this definition,
1714
- "control" means (i) the power, direct or indirect, to cause the
1715
- direction or management of such entity, whether by contract or
1716
- otherwise, or (ii) ownership of fifty percent (50%) or more of the
1717
- outstanding shares, or (iii) beneficial ownership of such entity.
1718
-
1719
- "You" (or "Your") shall mean an individual or Legal Entity
1720
- exercising permissions granted by this License.
1721
-
1722
- "Source" form shall mean the preferred form for making modifications,
1723
- including but not limited to software source code, documentation
1724
- source, and configuration files.
1725
-
1726
- "Object" form shall mean any form resulting from mechanical
1727
- transformation or translation of a Source form, including but
1728
- not limited to compiled object code, generated documentation,
1729
- and conversions to other media types.
1730
-
1731
- "Work" shall mean the work of authorship, whether in Source or
1732
- Object form, made available under the License, as indicated by a
1733
- copyright notice that is included in or attached to the work
1734
- (an example is provided in the Appendix below).
1735
-
1736
- "Derivative Works" shall mean any work, whether in Source or Object
1737
- form, that is based on (or derived from) the Work and for which the
1738
- editorial revisions, annotations, elaborations, or other modifications
1739
- represent, as a whole, an original work of authorship. For the purposes
1740
- of this License, Derivative Works shall not include works that remain
1741
- separable from, or merely link (or bind by name) to the interfaces of,
1742
- the Work and Derivative Works thereof.
1743
-
1744
- "Contribution" shall mean any work of authorship, including
1745
- the original version of the Work and any modifications or additions
1746
- to that Work or Derivative Works thereof, that is intentionally
1747
- submitted to Licensor for inclusion in the Work by the copyright owner
1748
- or by an individual or Legal Entity authorized to submit on behalf of
1749
- the copyright owner. For the purposes of this definition, "submitted"
1750
- means any form of electronic, verbal, or written communication sent
1751
- to the Licensor or its representatives, including but not limited to
1752
- communication on electronic mailing lists, source code control systems,
1753
- and issue tracking systems that are managed by, or on behalf of, the
1754
- Licensor for the purpose of discussing and improving the Work, but
1755
- excluding communication that is conspicuously marked or otherwise
1756
- designated in writing by the copyright owner as "Not a Contribution."
1757
-
1758
- "Contributor" shall mean Licensor and any individual or Legal Entity
1759
- on behalf of whom a Contribution has been received by Licensor and
1760
- subsequently incorporated within the Work.
1761
-
1762
- 2. Grant of Copyright License. Subject to the terms and conditions of
1763
- this License, each Contributor hereby grants to You a perpetual,
1764
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1765
- copyright license to reproduce, prepare Derivative Works of,
1766
- publicly display, publicly perform, sublicense, and distribute the
1767
- Work and such Derivative Works in Source or Object form.
1768
-
1769
- 3. Grant of Patent License. Subject to the terms and conditions of
1770
- this License, each Contributor hereby grants to You a perpetual,
1771
- worldwide, non-exclusive, no-charge, royalty-free, irrevocable
1772
- (except as stated in this section) patent license to make, have made,
1773
- use, offer to sell, sell, import, and otherwise transfer the Work,
1774
- where such license applies only to those patent claims licensable
1775
- by such Contributor that are necessarily infringed by their
1776
- Contribution(s) alone or by combination of their Contribution(s)
1777
- with the Work to which such Contribution(s) was submitted. If You
1778
- institute patent litigation against any entity (including a
1779
- cross-claim or counterclaim in a lawsuit) alleging that the Work
1780
- or a Contribution incorporated within the Work constitutes direct
1781
- or contributory patent infringement, then any patent licenses
1782
- granted to You under this License for that Work shall terminate
1783
- as of the date such litigation is filed.
1784
-
1785
- 4. Redistribution. You may reproduce and distribute copies of the
1786
- Work or Derivative Works thereof in any medium, with or without
1787
- modifications, and in Source or Object form, provided that You
1788
- meet the following conditions:
1789
-
1790
- (a) You must give any other recipients of the Work or
1791
- Derivative Works a copy of this License; and
1792
-
1793
- (b) You must cause any modified files to carry prominent notices
1794
- stating that You changed the files; and
1795
-
1796
- (c) You must retain, in the Source form of any Derivative Works
1797
- that You distribute, all copyright, patent, trademark, and
1798
- attribution notices from the Source form of the Work,
1799
- excluding those notices that do not pertain to any part of
1800
- the Derivative Works; and
1801
-
1802
- (d) If the Work includes a "NOTICE" text file as part of its
1803
- distribution, then any Derivative Works that You distribute must
1804
- include a readable copy of the attribution notices contained
1805
- within such NOTICE file, excluding those notices that do not
1806
- pertain to any part of the Derivative Works, in at least one
1807
- of the following places: within a NOTICE text file distributed
1808
- as part of the Derivative Works; within the Source form or
1809
- documentation, if provided along with the Derivative Works; or,
1810
- within a display generated by the Derivative Works, if and
1811
- wherever such third-party notices normally appear. The contents
1812
- of the NOTICE file are for informational purposes only and
1813
- do not modify the License. You may add Your own attribution
1814
- notices within Derivative Works that You distribute, alongside
1815
- or as an addendum to the NOTICE text from the Work, provided
1816
- that such additional attribution notices cannot be construed
1817
- as modifying the License.
1818
-
1819
- You may add Your own copyright statement to Your modifications and
1820
- may provide additional or different license terms and conditions
1821
- for use, reproduction, or distribution of Your modifications, or
1822
- for any such Derivative Works as a whole, provided Your use,
1823
- reproduction, and distribution of the Work otherwise complies with
1824
- the conditions stated in this License.
1825
-
1826
- 5. Submission of Contributions. Unless You explicitly state otherwise,
1827
- any Contribution intentionally submitted for inclusion in the Work
1828
- by You to the Licensor shall be under the terms and conditions of
1829
- this License, without any additional terms or conditions.
1830
- Notwithstanding the above, nothing herein shall supersede or modify
1831
- the terms of any separate license agreement you may have executed
1832
- with Licensor regarding such Contributions.
1833
-
1834
- 6. Trademarks. This License does not grant permission to use the trade
1835
- names, trademarks, service marks, or product names of the Licensor,
1836
- except as required for reasonable and customary use in describing the
1837
- origin of the Work and reproducing the content of the NOTICE file.
1838
-
1839
- 7. Disclaimer of Warranty. Unless required by applicable law or
1840
- agreed to in writing, Licensor provides the Work (and each
1841
- Contributor provides its Contributions) on an "AS IS" BASIS,
1842
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
1843
- implied, including, without limitation, any warranties or conditions
1844
- of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
1845
- PARTICULAR PURPOSE. You are solely responsible for determining the
1846
- appropriateness of using or redistributing the Work and assume any
1847
- risks associated with Your exercise of permissions under this License.
1848
-
1849
- 8. Limitation of Liability. In no event and under no legal theory,
1850
- whether in tort (including negligence), contract, or otherwise,
1851
- unless required by applicable law (such as deliberate and grossly
1852
- negligent acts) or agreed to in writing, shall any Contributor be
1853
- liable to You for damages, including any direct, indirect, special,
1854
- incidental, or consequential damages of any character arising as a
1855
- result of this License or out of the use or inability to use the
1856
- Work (including but not limited to damages for loss of goodwill,
1857
- work stoppage, computer failure or malfunction, or any and all
1858
- other commercial damages or losses), even if such Contributor
1859
- has been advised of the possibility of such damages.
1860
-
1861
- 9. Accepting Warranty or Additional Liability. While redistributing
1862
- the Work or Derivative Works thereof, You may choose to offer,
1863
- and charge a fee for, acceptance of support, warranty, indemnity,
1864
- or other liability obligations and/or rights consistent with this
1865
- License. However, in accepting such obligations, You may act only
1866
- on Your own behalf and on Your sole responsibility, not on behalf
1867
- of any other Contributor, and only if You agree to indemnify,
1868
- defend, and hold each Contributor harmless for any liability
1869
- incurred by, or claims asserted against, such Contributor by reason
1870
- of your accepting any such warranty or additional liability.
1871
-
1872
- END OF TERMS AND CONDITIONS
1873
-
1874
- APPENDIX: How to apply the Apache License to your work.
1875
-
1876
- To apply the Apache License to your work, attach the following
1877
- boilerplate notice, with the fields enclosed by brackets "[]"
1878
- replaced with your own identifying information. (Don't include
1879
- the brackets!) The text should be enclosed in the appropriate
1880
- comment syntax for the file format. We also recommend that a
1881
- file or class name and description of purpose be included on the
1882
- same "printed page" as the copyright notice for easier
1883
- identification within third-party archives.
1884
-
1885
- Copyright [yyyy] [name of copyright owner]
1886
-
1887
- Licensed under the Apache License, Version 2.0 (the "License");
1888
- you may not use this file except in compliance with the License.
1889
- You may obtain a copy of the License at
1890
-
1891
- http://www.apache.org/licenses/LICENSE-2.0
1892
-
1893
- Unless required by applicable law or agreed to in writing, software
1894
- distributed under the License is distributed on an "AS IS" BASIS,
1895
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1896
- See the License for the specific language governing permissions and
1897
- limitations under the License.
1898
-
1449
+ undefined
1899
1450
  ```
1900
1451
 
1901
1452
  ### json-bigint
@@ -2035,7 +1586,7 @@ IN THE SOFTWARE.
2035
1586
 
2036
1587
  ### require-in-the-middle
2037
1588
 
2038
- This product includes source derived from [require-in-the-middle](https://github.com/elastic/require-in-the-middle) ([v7.5.0](https://github.com/elastic/require-in-the-middle/tree/v7.5.0)), distributed under the [MIT License](https://github.com/elastic/require-in-the-middle/blob/v7.5.0/LICENSE):
1589
+ This product includes source derived from [require-in-the-middle](https://github.com/elastic/require-in-the-middle) ([v7.4.0](https://github.com/elastic/require-in-the-middle/tree/v7.4.0)), distributed under the [MIT License](https://github.com/elastic/require-in-the-middle/blob/v7.4.0/LICENSE):
2039
1590
 
2040
1591
  ```
2041
1592
  The MIT License (MIT)
@@ -2065,7 +1616,7 @@ SOFTWARE.
2065
1616
 
2066
1617
  ### semver
2067
1618
 
2068
- This product includes source derived from [semver](https://github.com/npm/node-semver) ([v7.7.0](https://github.com/npm/node-semver/tree/v7.7.0)), distributed under the [ISC License](https://github.com/npm/node-semver/blob/v7.7.0/LICENSE):
1619
+ 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):
2069
1620
 
2070
1621
  ```
2071
1622
  The ISC License
@@ -2121,7 +1672,7 @@ SOFTWARE.
2121
1672
 
2122
1673
  ### @aws-sdk/client-s3
2123
1674
 
2124
- This product includes source derived from [@aws-sdk/client-s3](https://github.com/aws/aws-sdk-js-v3) ([v3.740.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.740.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.740.0/LICENSE):
1675
+ 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):
2125
1676
 
2126
1677
  ```
2127
1678
  Apache License
@@ -2330,7 +1881,7 @@ This product includes source derived from [@aws-sdk/client-s3](https://github.co
2330
1881
 
2331
1882
  ### @aws-sdk/s3-request-presigner
2332
1883
 
2333
- This product includes source derived from [@aws-sdk/s3-request-presigner](https://github.com/aws/aws-sdk-js-v3) ([v3.740.0](https://github.com/aws/aws-sdk-js-v3/tree/v3.740.0)), distributed under the [Apache-2.0 License](https://github.com/aws/aws-sdk-js-v3/blob/v3.740.0/LICENSE):
1884
+ 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):
2334
1885
 
2335
1886
  ```
2336
1887
  Apache License
@@ -4158,7 +3709,7 @@ SOFTWARE.
4158
3709
 
4159
3710
  ### eslint-plugin-jsdoc
4160
3711
 
4161
- This product includes source derived from [eslint-plugin-jsdoc](https://github.com/gajus/eslint-plugin-jsdoc) ([v50.6.3](https://github.com/gajus/eslint-plugin-jsdoc/tree/v50.6.3)), distributed under the [BSD-3-Clause License](https://github.com/gajus/eslint-plugin-jsdoc/blob/v50.6.3/LICENSE):
3712
+ 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):
4162
3713
 
4163
3714
  ```
4164
3715
  Copyright (c) 2018, Gajus Kuizinas (http://gajus.com/)
@@ -4190,7 +3741,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
4190
3741
 
4191
3742
  ### eslint
4192
3743
 
4193
- This product includes source derived from [eslint](https://github.com/eslint/eslint) ([v9.19.0](https://github.com/eslint/eslint/tree/v9.19.0)), distributed under the [MIT License](https://github.com/eslint/eslint/blob/v9.19.0/LICENSE):
3744
+ 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):
4194
3745
 
4195
3746
  ```
4196
3747
  Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
package/api.js CHANGED
@@ -513,7 +513,6 @@ API.prototype.recordLogEvent = function recordLogEvent(logEvent = {}) {
513
513
  )
514
514
  return
515
515
  }
516
- logEvent.message = applicationLogging.truncate(logEvent.message)
517
516
 
518
517
  if (!logEvent.level) {
519
518
  logger.debug('no log level set, setting it to UNKNOWN')
@@ -1537,18 +1536,24 @@ API.prototype.getTraceMetadata = function getTraceMetadata() {
1537
1536
  NAMES.SUPPORTABILITY.API + '/getTraceMetadata'
1538
1537
  )
1539
1538
  metric.incrementCallCount()
1540
-
1541
1539
  const metadata = {}
1542
1540
 
1543
- const segment = this.agent.tracer.getSegment()
1541
+ if (this.agent.config.distributed_tracing.enabled === false) {
1542
+ return metadata
1543
+ }
1544
+
1544
1545
  const transaction = this.agent.tracer.getTransaction()
1545
- if (!(segment || transaction)) {
1546
+ if (!transaction) {
1546
1547
  logger.debug('No transaction found when calling API#getTraceMetadata')
1547
- } else if (!this.agent.config.distributed_tracing.enabled) {
1548
- logger.debug('Distributed tracing disabled when calling API#getTraceMetadata')
1549
1548
  } else {
1550
1549
  metadata.traceId = transaction.traceId
1550
+ }
1551
+
1552
+ const segment = this.agent.tracer.getSegment()
1551
1553
 
1554
+ if (!segment) {
1555
+ logger.debug('No segment found when calling API#getTraceMetadata')
1556
+ } else {
1552
1557
  const spanId = segment.getSpanId()
1553
1558
  if (spanId) {
1554
1559
  metadata.spanId = spanId
@@ -7,6 +7,13 @@
7
7
  const { boolean } = require('./formatters')
8
8
  const instrumentedLibraries = require('../instrumentations')()
9
9
  const pkgNames = Object.keys(instrumentedLibraries)
10
+ const coreLibraries = require('../core-instrumentation')
11
+ const corePkgs = Object.keys(coreLibraries)
12
+ // Manually adding undici as it is registered separately in shimmer
13
+ corePkgs.push('undici')
14
+ // Manually adding domain as it is registered separately in shimmer
15
+ corePkgs.push('domain')
16
+ pkgNames.push(...corePkgs)
10
17
 
11
18
  /**
12
19
  * Builds the stanza for config.instrumentation.*