newrelic 14.1.1 → 14.1.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
|
+
### v14.1.2 (2026-06-25)
|
|
2
|
+
|
|
3
|
+
#### Bug fixes
|
|
4
|
+
|
|
5
|
+
* Fixed Azure functions crashing when they include response headers ([#4070](https://github.com/newrelic/node-newrelic/pull/4070)) ([c88d2b7](https://github.com/newrelic/node-newrelic/commit/c88d2b7da7d723fa63b85d7bd802a7601717155f))
|
|
6
|
+
|
|
7
|
+
#### Documentation
|
|
8
|
+
|
|
9
|
+
* Updated compatibility report ([#4067](https://github.com/newrelic/node-newrelic/pull/4067)) ([0ae24b8](https://github.com/newrelic/node-newrelic/commit/0ae24b865d61b0035cffdafbcfc6543cd7dce27d))
|
|
10
|
+
|
|
1
11
|
### v14.1.1 (2026-06-23)
|
|
2
12
|
|
|
3
13
|
#### Documentation
|
|
@@ -42,9 +42,22 @@ module.exports = class AzureHandler {
|
|
|
42
42
|
const newCtx = this.createTransaction({ handlerArgs, ctx })
|
|
43
43
|
const transaction = newCtx?.transaction
|
|
44
44
|
this.addFaasAttributes(transaction, context)
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
|
|
46
|
+
// We need to wrap up all of our operations into a function that we
|
|
47
|
+
// can execute within the same context. If we only run the original handler
|
|
48
|
+
// in the context, then when we try to finalize the transaction we will
|
|
49
|
+
// not have access to the segment.
|
|
50
|
+
const wrappedHandler = async (...args) => {
|
|
51
|
+
const result = await originalHandler.apply(thisArg, args)
|
|
52
|
+
this.handleColdStart(transaction)
|
|
53
|
+
return this.finalizeTransaction({ result, transaction })
|
|
54
|
+
}
|
|
55
|
+
return await this.runHandlerInContext({
|
|
56
|
+
originalHandler: wrappedHandler,
|
|
57
|
+
ctx: newCtx,
|
|
58
|
+
thisArg,
|
|
59
|
+
handlerArgs
|
|
60
|
+
})
|
|
48
61
|
}
|
|
49
62
|
|
|
50
63
|
runHandlerInContext({ originalHandler, ctx, thisArg, handlerArgs }) {
|