You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to nodejs docsresponse.finished property is deprecated since: v13.4.0, v12.16.0. There is another property recommended by the docs named writableEnded. Agent is relying on this property to fill the transaction.contex.response.finished field.
Although latest version v20.3.0 still supports it agent should anticipate the removal of that property and use the new one when needed. So some expression like the one below may be enough
context.finshed=res.finished||res.writableEnded
The text was updated successfully, but these errors were encountered:
#3430)
* fix: Start supporting response.writableEnded in transaction's context.
Since response.finished property is deprecated as of the newer node versions and another property i.e. response.writableEnded is currently used in place of it. So start supporting reponse.writableEnded in transcation's context. Also, the change is backward compatible as the respone.finished is not removed yet.
Fixes: #3428
elastic#3430)
* fix: Start supporting response.writableEnded in transaction's context.
Since response.finished property is deprecated as of the newer node versions and another property i.e. response.writableEnded is currently used in place of it. So start supporting reponse.writableEnded in transcation's context. Also, the change is backward compatible as the respone.finished is not removed yet.
Fixes: elastic#3428
According to nodejs docs
response.finished
property is deprecated since: v13.4.0, v12.16.0. There is another property recommended by the docs namedwritableEnded
. Agent is relying on this property to fill thetransaction.contex.response.finished
field.Although latest version v20.3.0 still supports it agent should anticipate the removal of that property and use the new one when needed. So some expression like the one below may be enough
The text was updated successfully, but these errors were encountered: