GithubHelp home page GithubHelp logo

Comments (3)

joefiorini avatar joefiorini commented on May 22, 2024

I have insight working for basic tracking of each command. I need to implement a little more for tracking different options, and I'm also going to add exception tracking. FYI I've had to use my own fork of insight (https://github.com/joefiorini/insight) until yeoman/insight#19 is resolved.

from ember-cli.

joefiorini avatar joefiorini commented on May 22, 2024

I did some research this weekend on how/what to track wrt to a CLI app. For each run of the Ember command, I'd like to know:

  1. What command did the user run?
  2. What options did the user pass in?
  3. Did that user run into a fatal exception? If so, what type?
  4. What OS was the user on?
  5. What node version was the user on?
  6. How long did it take to run to completion?

These are somewhat answerable by Google Analytics, but not without it being somewhat of a hack. I think ideally we'd have a database somewhere where we could just write the data we want and get get a few roll up reports (most used commands, least used commands, least used options, OS breakdown, Node version breakdown, mean/median run time).

That's obviously quite complicated. On top of that, insight doesn't really have much support for capturing different types. Right now it can really only support the 'appview' type, and even then that's only with my fork.

So for now, I'm going to capture two "appview" events per user. The first one will be just the command that the user ran (eg. "ember build") and the second one will be the JSON string of arguments the user passed in (eg. "{ remain: 'production', output: '/example' }"). This should help us enough, and if we really feel it's important in the future, maybe we can look into answering the above questions.

Sound good @stefanpenner?

from ember-cli.

stefanpenner avatar stefanpenner commented on May 22, 2024

@joefiorini this looks great. I agree we can move to something more advanced as time allows.

from ember-cli.

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.