Giter Club home page Giter Club logo

Comments (5)

AlexBulankou avatar AlexBulankou commented on May 13, 2024 1

With the updated API, sendPendingData was renamed to flush which provides a way set a flag indicating that app is crashing, so they payload needs to be saved on disk immediately: client.flush({isAppCrashing: true}) .

I'm going to close the issue for now. Please reactivate if there's a repro with SDK crashing with undefiend channel when flush() is called.

from applicationinsights-node.js.

seanmcbreen avatar seanmcbreen commented on May 13, 2024

Hi,
I wanted to see if there was any update here - this is a key issue for us as it really impacts the consistency, accuracy and predictability of the data we can get.

from applicationinsights-node.js.

martincostello avatar martincostello commented on May 13, 2024

A similar use case is using Application Insights with an AWS lambda function. If the function gets low traffic, events can end up never being logged as the disk cache cannot always be read later.

from applicationinsights-node.js.

jeffwilcox avatar jeffwilcox commented on May 13, 2024

We were previously calling appInsightsClient.sendPendingData(), but this is no longer working in newer SDK versions - there's an undefined channel inside this method that we often see when watching the errors stream through.

Our scenario is similar to the lambda one - we have a WebJob that runs, and if we call process.exit(0) at some point, we do tend to lose events, metrics as the process ends so quick.

from applicationinsights-node.js.

AlexBulankou avatar AlexBulankou commented on May 13, 2024

@jeffwilcox, do you happen to have a repro of undefined channel when calling sendPendingData? I can see that otherwise this method works as sync flush call.

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.