newrelic 12.18.1 → 12.18.2

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,13 @@
1
+ ### v12.18.2 (2025-04-30)
2
+
3
+ #### Bug fixes
4
+
5
+ * Updated `createSegment` to stop adding segments to trace when `max_trace_segments` is exceeded ([#3056](https://github.com/newrelic/node-newrelic/pull/3056)) ([8f3336e](https://github.com/newrelic/node-newrelic/commit/8f3336e98ac9f7d4ad0ded3a061774fd68053e76))
6
+
7
+ #### Documentation
8
+
9
+ * Updated compatibility report ([#3065](https://github.com/newrelic/node-newrelic/pull/3065)) ([#3063](https://github.com/newrelic/node-newrelic/pull/3063))
10
+
1
11
  ### v12.18.1 (2025-04-29)
2
12
 
3
13
  #### Bug fixes
@@ -135,7 +135,10 @@ function createSegment({ id, name, recorder, parent, transaction }) {
135
135
  if (recorder) {
136
136
  transaction.addRecorder(recorder.bind(null, segment))
137
137
  }
138
- transaction.trace.segments.add(segment)
138
+
139
+ if (collect) {
140
+ transaction.trace.segments.add(segment)
141
+ }
139
142
 
140
143
  return segment
141
144
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "newrelic",
3
- "version": "12.18.1",
3
+ "version": "12.18.2",
4
4
  "author": "New Relic Node.js agent team <nodejs@newrelic.com>",
5
5
  "license": "Apache-2.0",
6
6
  "contributors": [