microsoft / ApplicationInsights-node.js

Microsoft Application Insights SDK for Node.js
MIT License
320 stars 138 forks source link

Avoid request to be blocked once the "dispose" method has been called #1196

Closed Apokalypt closed 10 months ago

Apokalypt commented 10 months ago

When the dispose method is called, the static INSTANCE property is set to null, which means there is no query handler (neither the original nor the custom handler). So I've added a control to call the default handler if the INSTANCE property is set to null

Fix #1195