Comments (8)
Thanks for reporting the issue! It looks like the request tracking is broken because of nodejs/node-v0.x-archive#9195
Basically node is returning something like this "::ffff:127.0.0.1" if the host system supports ipv6.
The data collection server rejects request telemetry sent with this value since it is not valid ipv4 so no data shows up. I'll follow up with some people to see if this is something we want to fix in the data collector service or if we should try to work around it in this SDK.
from applicationinsights-node.js.
Thank you! I'll update to 0.12.5.
from applicationinsights-node.js.
I upgraded to 0.12.5 and I still don't see any logs in the Portal for my app. I checked again that APPINSIGHTS_INSTRUMENTATION_KEY
was set to the correct key. I downgraded to node
0.10.x
which installed 0.10.32
on Azure. I still see nothing. :(
from applicationinsights-node.js.
I've seen request processing take up to 30 minutes sometimes. The back-end has a different queue for each type of data so it could be backed up. Could you try adding this somewhere before starting the server? Traces and Exceptions show up in ~1min.
appInsights.trackEvent("test");
appInsights.trackTrace("test");
appInsights.trackException("test");
If you still don't see anything let me know. In the browser you can do something like this to get more detailed logs, but IDK if it works in node
.
appInsights.config.enableDebug = true;
appInsights.config.verboseLogging = true;
from applicationinsights-node.js.
Please let me know if you're still having issues here. I'm no longer able to repro locally so I'm very interested in understanding the issue if something is broken. Thanks again for reporting.
from applicationinsights-node.js.
I put in the debug messages at startup.
appInsights.trackEvent("test event");
appInsights.trackTrace("test trace");
appInsights.trackException(new Error("test error"));
The good news is that it is working when I run it locally. This shows it not starting if I haven't set the key, then it working when I do.
Unfortunately, I am not getting anything reported when run it is running on Azure. I've tried hardcoding the instrumentation key. It also works locally and not on Azure. Any ideas for troubleshooting?
from applicationinsights-node.js.
I switched to io.js
as explained in How to use.io.js with Azure Websites and it works perfectly. =)
from applicationinsights-node.js.
glad to hear, thanks for letting me know :)
from applicationinsights-node.js.
Related Issues (20)
- EEXIST error when using functions_worker_process_count
- Doubts on how this package works
- Configuration of automatic web instrumentation HOT 1
- Errors when building Electron app HOT 1
- [Beta] Module size is too BIG HOT 4
- [Beta] Some errors get serialized as empty objects in logs HOT 3
- [beta] ETA for when 3.0.0 will be out HOT 3
- Do not know how to serialize a BigInt HOT 1
- Nested object iside array returns [Object] when using info.message
- Corellation Context cannot be accessed during azure functions preInvocation hooks
- Incorrect `shutdownStatsbeat` optional parameter handling (TypeError: _this._shutdownStatsbeat is not a function) HOT 1
- NextJs images not showing in Azure HOT 11
- NextJS and AI always connects to West Europe HOT 12
- [3.0.0-beta.11] Incorrect types for `useAzureMonitor`? HOT 1
- Dependency incompatible with node < 18 HOT 2
- [Beta] Custom error types get serialized as empty objects HOT 6
- Distributed Tracing not working when using Service Bus topics HOT 1
- Display console kogs HOT 3
- [Beta] - Winston log level not respected by SDK HOT 1
- Dependency requests not logged on node 18 with fetch API HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from applicationinsights-node.js.