Closed djpiper28 closed 3 months ago
It is hard-coded by the looks of it
@djpiper28 You should be able to avoid this error by setting the environment variable APPLICATION_INSIGHTS_NO_STATSBEAT
. Does this error occur in both AKS and in local testing of the application?
@djpiper28 You should be able to avoid this error by setting the environment variable
APPLICATION_INSIGHTS_NO_STATSBEAT
. Does this error occur in both AKS and in local testing of the application?
It occurs on the aks and locally. I will try that env var on Monday
@djpiper28 Also, regarding the @azure/core-tracing loading issue, this was addressed here: https://github.com/microsoft/ApplicationInsights-node.js/issues/1107
that env var seemed to work 👍🏼
this appears to have broken the logs
@djpiper28 Can you provide more information. What are you seeing with your logs?
I am no longer getting this issue and I'm not sure what changes have been made to the AKS. Codewise nothing was done
@djpiper28 I'm still not quite sure what your issue with the logs entailed. If you need more help diagnosing the issue, I can try to help with more detail, but otherwise if everything is working as expected I'm happy to resolve this issue.
Issue is the app insights library talks to west Europe servers for internal telemetry or something, and on our aks cluster there is a firewall that blocks it. (the firewall is for gdpr reasons)
@djpiper28 Sounds like that was resolved by disabling statsbeat via the environment variable. Is there a new issue occurring?
Closing as there have not been updates on this issue.
Replication:
Started using
node --require ./loadappinsights.js node_modules/next/dist/bin/next dev
Dependencies:
Versions tested:
Environment:
@ZanyLeonic was able to replicate this issue as well.
Error messages seen:
![image](https://github.com/microsoft/ApplicationInsights-node.js/assets/13609136/5b99ebaf-c20e-4042-87c7-22286a953468)