Giter Club home page Giter Club logo

Comments (8)

southwood avatar southwood commented on May 13, 2024

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.

ctaggart avatar ctaggart commented on May 13, 2024

Thank you! I'll update to 0.12.5.

from applicationinsights-node.js.

ctaggart avatar ctaggart commented on May 13, 2024

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.

southwood avatar southwood commented on May 13, 2024

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.

southwood avatar southwood commented on May 13, 2024

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.

ctaggart avatar ctaggart commented on May 13, 2024

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.

image

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.

ctaggart avatar ctaggart commented on May 13, 2024

I switched to io.js as explained in How to use.io.js with Azure Websites and it works perfectly. =)

from applicationinsights-node.js.

southwood avatar southwood commented on May 13, 2024

glad to hear, thanks for letting me know :)

from applicationinsights-node.js.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.