newrelic 12.11.3 → 12.12.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 +119 -95
- package/THIRD_PARTY_NOTICES.md +646 -256
- package/index.js +4 -0
- package/lib/agent.js +28 -17
- package/lib/collector/api.js +15 -0
- package/lib/config/default.js +39 -0
- package/lib/config/index.js +1 -1
- package/lib/context-manager/context.js +51 -2
- package/lib/feature_flags.js +1 -1
- package/lib/health-reporter.js +260 -0
- package/lib/otel/context-manager.js +52 -0
- package/lib/otel/logger.js +25 -0
- package/lib/otel/segments/http-external.js +2 -0
- package/lib/otel/segments/internal.js +3 -1
- package/lib/otel/setup.js +45 -0
- package/lib/otel/span-processor.js +47 -0
- package/lib/shimmer.js +2 -0
- package/lib/symbols.js +1 -0
- package/lib/util/sql/obfuscate.js +20 -3
- package/package.json +9 -3
package/NEWS.md
CHANGED
|
@@ -1,98 +1,122 @@
|
|
|
1
|
-
### v12.
|
|
2
|
-
|
|
3
|
-
####
|
|
4
|
-
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
|
|
8
|
-
####
|
|
9
|
-
|
|
10
|
-
* Updated
|
|
11
|
-
|
|
12
|
-
####
|
|
13
|
-
|
|
14
|
-
* Updated
|
|
15
|
-
|
|
16
|
-
####
|
|
17
|
-
|
|
18
|
-
*
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
####
|
|
63
|
-
|
|
64
|
-
*
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
*
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
####
|
|
87
|
-
|
|
88
|
-
*
|
|
89
|
-
*
|
|
90
|
-
*
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
*
|
|
95
|
-
|
|
1
|
+
### v12.12.0 (2025-02-05)
|
|
2
|
+
|
|
3
|
+
#### Features
|
|
4
|
+
|
|
5
|
+
* Added health check support for upcoming feature ([#2841](https://github.com/newrelic/node-newrelic/pull/2841)) ([4c8bf13](https://github.com/newrelic/node-newrelic/commit/4c8bf13f124ea09fac750d7368c78a4c9cdc760e))
|
|
6
|
+
* Added opentelemetry bridge instrumentation that adds a context manager, and processor to handle synthesizing segments and time slice metrics. ([#2906](https://github.com/newrelic/node-newrelic/pull/2906)) ([d2e8a9e](https://github.com/newrelic/node-newrelic/commit/d2e8a9e369d91494fdcbc14f06916a88e4801ae1))
|
|
7
|
+
|
|
8
|
+
#### Bug fixes
|
|
9
|
+
|
|
10
|
+
* Updated default config to accept `undefined` as default value ([#2917](https://github.com/newrelic/node-newrelic/pull/2917)) ([e049442](https://github.com/newrelic/node-newrelic/commit/e04944207956fd02ea161ab8c46ea96761160bd0))
|
|
11
|
+
|
|
12
|
+
#### Documentation
|
|
13
|
+
|
|
14
|
+
* Updated compatibility report ([#2914](https://github.com/newrelic/node-newrelic/pull/2914)) ([acd0c90](https://github.com/newrelic/node-newrelic/commit/acd0c904adb9a69928ed1a6513a67bb297dba8ee))
|
|
15
|
+
|
|
16
|
+
#### Miscellaneous chores
|
|
17
|
+
|
|
18
|
+
* Added regex note to sql obfuscator ([#2911](https://github.com/newrelic/node-newrelic/pull/2911)) ([1533111](https://github.com/newrelic/node-newrelic/commit/1533111e416c50b0c61ad086d3d86ae30f70532a))
|
|
19
|
+
* **deps:** Updated @newrelic/security-agent to v2.3.0 ([#2918](https://github.com/newrelic/node-newrelic/pull/2918)) ([ed89f38](https://github.com/newrelic/node-newrelic/commit/ed89f387efe2c5c3175250684bf4987ed29d7747))
|
|
20
|
+
|
|
21
|
+
#### Continuous integration
|
|
22
|
+
|
|
23
|
+
* Optimized the lambda layers and k8s init containers post release workflow ([#2915](https://github.com/newrelic/node-newrelic/pull/2915)) ([4be1099](https://github.com/newrelic/node-newrelic/commit/4be10997d9059daeb626cf6ba9ebf954fb1fe500))
|
|
24
|
+
|
|
25
|
+
### v12.11.3 (2025-01-29)
|
|
26
|
+
|
|
27
|
+
#### Bug fixes
|
|
28
|
+
|
|
29
|
+
* Fixed issue with `bluebird` and `when` instrumentation where checking active context crashed when transaction prematurely ends ([#2909](https://github.com/newrelic/node-newrelic/pull/2909)) ([4a30d5c](https://github.com/newrelic/node-newrelic/commit/4a30d5c5082e963cca3664f2ed152017f6360d21))
|
|
30
|
+
* Fixed transaction-shim to properly create new transactions when the existing transaction is not active ([#2912](https://github.com/newrelic/node-newrelic/pull/2912)) ([3ad8c59](https://github.com/newrelic/node-newrelic/commit/3ad8c59e15e037a366ddf6803729b61ecfa701f3))
|
|
31
|
+
|
|
32
|
+
#### Documentation
|
|
33
|
+
|
|
34
|
+
* Updated compatibility report ([#2902](https://github.com/newrelic/node-newrelic/pull/2902)) ([cb16516](https://github.com/newrelic/node-newrelic/commit/cb16516e90a3dc2cefb98e6131a7243412aefbfc))
|
|
35
|
+
|
|
36
|
+
#### Miscellaneous chores
|
|
37
|
+
|
|
38
|
+
* Updated lint rule suppression comment ([#2895](https://github.com/newrelic/node-newrelic/pull/2895)) ([559dc98](https://github.com/newrelic/node-newrelic/commit/559dc98e18c8ba8280b73779780f3efc1c946ed7))
|
|
39
|
+
|
|
40
|
+
#### Continuous integration
|
|
41
|
+
|
|
42
|
+
* Move init container release from lambda to GHA ([#2848](https://github.com/newrelic/node-newrelic/pull/2848)) ([8d8608d](https://github.com/newrelic/node-newrelic/commit/8d8608d1089cafaeb8c17354034c96fe1b49597a))
|
|
43
|
+
|
|
44
|
+
### v12.11.2 (2025-01-23)
|
|
45
|
+
|
|
46
|
+
#### Features
|
|
47
|
+
|
|
48
|
+
* Added support for Claude 3+ Chat API in Bedrock ([#2870](https://github.com/newrelic/node-newrelic/pull/2870)) ([6a83abf](https://github.com/newrelic/node-newrelic/commit/6a83abf8b1a0cb0f993e9d9285566a09677d7d2e))
|
|
49
|
+
|
|
50
|
+
#### Bug fixes
|
|
51
|
+
|
|
52
|
+
* Added defensive code in shim to prevent crashing when checking parent segment ([#2898](https://github.com/newrelic/node-newrelic/pull/2898)) ([751eb96](https://github.com/newrelic/node-newrelic/commit/751eb9608d7401d1123a0e810eac9dc554127e4e))
|
|
53
|
+
|
|
54
|
+
#### Documentation
|
|
55
|
+
|
|
56
|
+
* Updated compatibility report ([#2888](https://github.com/newrelic/node-newrelic/pull/2888)) ([dce9deb](https://github.com/newrelic/node-newrelic/commit/dce9debeda6c5ed30c0ed6dbc00f73cf11c8f40f))
|
|
57
|
+
|
|
58
|
+
#### Miscellaneous chores
|
|
59
|
+
|
|
60
|
+
* Replaced backtracking regex with new algorithm ([#2887](https://github.com/newrelic/node-newrelic/pull/2887)) ([46462d0](https://github.com/newrelic/node-newrelic/commit/46462d00b68c4a4cedd60d46d531b2f31800df98))
|
|
61
|
+
|
|
62
|
+
#### Tests
|
|
63
|
+
|
|
64
|
+
* Improved test coverage of normalizing claude 3 messages ([#2893](https://github.com/newrelic/node-newrelic/pull/2893)) ([cc65763](https://github.com/newrelic/node-newrelic/commit/cc657633b81daf4b372e5715e696ed3c23ecb678))
|
|
65
|
+
|
|
66
|
+
### v12.11.1 (2025-01-16)
|
|
67
|
+
|
|
68
|
+
#### Bug fixes
|
|
69
|
+
|
|
70
|
+
* Updated undici instrumentation to fix crash with trying to calculate exclusive duration on a segment that no longer exists ([#2884](https://github.com/newrelic/node-newrelic/pull/2884)) ([3b7e4bf](https://github.com/newrelic/node-newrelic/commit/3b7e4bf0a40b21f16b11e7761809cbaa83c02515))
|
|
71
|
+
|
|
72
|
+
#### Documentation
|
|
73
|
+
|
|
74
|
+
* Updated compatibility report ([#2878](https://github.com/newrelic/node-newrelic/pull/2878)) ([e784f84](https://github.com/newrelic/node-newrelic/commit/e784f8427bd49852f0ed7a15d6025ea8dfc73c72))
|
|
75
|
+
|
|
76
|
+
#### Miscellaneous chores
|
|
77
|
+
|
|
78
|
+
* Fixed dns integration tests ([#2883](https://github.com/newrelic/node-newrelic/pull/2883)) ([dd30ad7](https://github.com/newrelic/node-newrelic/commit/dd30ad71f07233682da39ca41f452a55c6798a15))
|
|
79
|
+
|
|
80
|
+
#### Tests
|
|
81
|
+
|
|
82
|
+
* Restored the branch to test apollo-server-plugin to main ([#2879](https://github.com/newrelic/node-newrelic/pull/2879)) ([978faab](https://github.com/newrelic/node-newrelic/commit/978faab59f5378e26cb8f5e584a3c9e684e7bbb1))
|
|
83
|
+
|
|
84
|
+
### v12.11.0 (2025-01-14)
|
|
85
|
+
|
|
86
|
+
#### Features
|
|
87
|
+
|
|
88
|
+
* Removed transaction from segment. Introduced a new `enterSegment` and `enterTransaction` to make context propagation more clear ([#2646](https://github.com/newrelic/node-newrelic/pull/2646)) ([d84531a](https://github.com/newrelic/node-newrelic/commit/d84531a9035387b997cb2b3c6bc7895e232f87e2))
|
|
89
|
+
* Removed children from segments. ([#2689](https://github.com/newrelic/node-newrelic/pull/2689)) ([66f140f](https://github.com/newrelic/node-newrelic/commit/66f140f36b0cf5ed1028a4cbda672bc603573ae7))
|
|
90
|
+
* Added segment tree to transaction trace ([#2717](https://github.com/newrelic/node-newrelic/pull/2717)) ([8fcc239](https://github.com/newrelic/node-newrelic/commit/8fcc239b37d7ece569de0bd19406e4d62904bcd3))
|
|
91
|
+
* Added segment synthesizer and provided ability to convert http client otel spans to external http trace segments ([#2745](https://github.com/newrelic/node-newrelic/pull/2745)) ([c42f8e6](https://github.com/newrelic/node-newrelic/commit/c42f8e646acaf50d5878a891f7b062ea46094091))
|
|
92
|
+
* Added otel consumer span processing ([#2854](https://github.com/newrelic/node-newrelic/pull/2854)) ([82fe9d5](https://github.com/newrelic/node-newrelic/commit/82fe9d5017d042234472c5d05c2c9c05d8a45091))
|
|
93
|
+
* Added segment and transaction synthesis for http server spans ([#2833](https://github.com/newrelic/node-newrelic/pull/2833)) ([8fa4d05](https://github.com/newrelic/node-newrelic/commit/8fa4d055b27a0494d7021bc3a284f4c4752a3cee))
|
|
94
|
+
* Added segment synthesis for db client otel spans to db trace ([#2820](https://github.com/newrelic/node-newrelic/pull/2820)) ([1ad1858](https://github.com/newrelic/node-newrelic/commit/1ad1858dcec71fa13065c2c80000055e206cb53a))
|
|
95
|
+
* Added segment synthesis for internal spans ([#2840](https://github.com/newrelic/node-newrelic/pull/2840)) ([436c63d](https://github.com/newrelic/node-newrelic/commit/436c63d0447bce6ddae77eaf032a4ddb65c7e07f))
|
|
96
|
+
* Added segment synthesis for otel producer spans ([#2839](https://github.com/newrelic/node-newrelic/pull/2839)) ([30f4995](https://github.com/newrelic/node-newrelic/commit/30f49955aa60fe4ef87c1bc82fe7faec3d756ccd))
|
|
97
|
+
|
|
98
|
+
#### Bug fixes
|
|
99
|
+
|
|
100
|
+
* Updated `shim.createSegment` and `shim.handleMqTracingHeaders` to be backwards compatible with the changes to context manager ([#2844](https://github.com/newrelic/node-newrelic/pull/2844)) ([554b4bf](https://github.com/newrelic/node-newrelic/commit/554b4bf0ae77dfa1e5a324f17622bc1c49b5f4f7))
|
|
101
|
+
|
|
102
|
+
#### Code refactoring
|
|
103
|
+
|
|
104
|
+
* Removed class construction on the segment synthesis and instrumentation ([#2837](https://github.com/newrelic/node-newrelic/pull/2837)) ([4b7ec0f](https://github.com/newrelic/node-newrelic/commit/4b7ec0f669cd936e86816bc24768727ba5067c88))
|
|
105
|
+
|
|
106
|
+
#### Documentation
|
|
107
|
+
|
|
108
|
+
* Updated compatibility report ([#2869](https://github.com/newrelic/node-newrelic/pull/2869)) ([4bde427](https://github.com/newrelic/node-newrelic/commit/4bde427f67aa1e1699e7ab12c4f96e83f70850a6))
|
|
109
|
+
|
|
110
|
+
#### Miscellaneous chores
|
|
111
|
+
|
|
112
|
+
* Added rules engine to match OTEL spans ([#2694](https://github.com/newrelic/node-newrelic/pull/2694)) ([2c93c68](https://github.com/newrelic/node-newrelic/commit/2c93c68b8563a07c450b8bd84d442c5ac18df3d8))
|
|
113
|
+
* Updated rules engine to account for fallbacks ([#2831](https://github.com/newrelic/node-newrelic/pull/2831)) ([19fbdfb](https://github.com/newrelic/node-newrelic/commit/19fbdfb4ec71fc5f6041d4ac8435d69a5f88ae9a))
|
|
114
|
+
* Updated versioned tests docs ([#2874](https://github.com/newrelic/node-newrelic/pull/2874)) ([73a84d7](https://github.com/newrelic/node-newrelic/commit/73a84d76be655a8cca88a47de177f1dfa4faa6e7))
|
|
115
|
+
|
|
116
|
+
#### Tests
|
|
117
|
+
|
|
118
|
+
* Updated a langchain test to be less rigid on asserting the tracking metric by `@langchain/core` version ([#2876](https://github.com/newrelic/node-newrelic/pull/2876)) ([73985ea](https://github.com/newrelic/node-newrelic/commit/73985ea45634478133a0ac6437b16758cfd775b2))
|
|
119
|
+
|
|
96
120
|
### v12.10.0 (2025-01-09)
|
|
97
121
|
|
|
98
122
|
#### Features
|