Closed marcus13371337 closed 1 year ago
@marcus13371337 do you have any more details in the exception?, telemetry failed to be delivered to ingestion endpoint is quite common, I cannot see a single place where this could throw an unhandled exception, can you double check if there is no other exception part of this?
@hectorhdzg I might have found something, we are using node v16, and an unhandled promise rejection in node >=15 will kill the application if I understand it correctly.
From what I can see, the promise created here does not have any .catch
-attached as far as I can see.
From the log message I sent the code seems to have passed this line of code which rejects the promise created here, and boom we have an uncaught rejected promise!
Fixed in latest release
Nice! Thanks for fixing the issue!
Hello it seems as if the server can't reach
applicationinsights.azure.com
when exporting spans the application crashes. I would assume that's not the desired behavior as telemetry is a nice-to-have and not an application crucial feature.Here is an example log from when that happened!