Code Monkey home page Code Monkey logo

Comments (4)

philliphoff avatar philliphoff commented on July 23, 2024

Can you be a little more specific, @atrauzzi, about how you think Glimpse might interfere with the use of an IoC? Even with an IoC, there should still be a single entry point from which Glimpse can be require()'d and initialized. After that point, it shouldn't matter how/when other component's packages are require()'d as Glimpse instruments packages lazily.

(The reason Glimpse must be initialized first is so that it can setup a hook to listen for other packages being imported, at which point it will add the appropriate instrumentation. If your application doesn't (explicitly or implicitly) import a package that Glimpse instruments, instrumentation of that package will not occur.)

from home.

atrauzzi avatar atrauzzi commented on July 23, 2024

My original thought was to do with module hoisting, optimization and just making sure no code has to be run before the module graph is complete.

This may or may not be an issue, but might merit consideration as the init call is a statement.

from home.

philliphoff avatar philliphoff commented on July 23, 2024

Feel free to give Glimpse a try in such a project and let us know if you run into any issues, as we definitely want Glimpse to work in as many scenarios as possible. Otherwise, if you can point to a project with an IoC similar to yours, we can experiment with adding Glimpse to the project ourselves and see how it behaves.

from home.

atrauzzi avatar atrauzzi commented on July 23, 2024

I think I'll be able to deliver that in a little bit. I'll close this ticket now and return later if possible with a repo link.

from home.

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.