Comments (3)
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.
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:
- What command did the user run?
- What options did the user pass in?
- Did that user run into a fatal exception? If so, what type?
- What OS was the user on?
- What node version was the user on?
- 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.
@joefiorini this looks great. I agree we can move to something more advanced as time allows.
from ember-cli.
Related Issues (20)
- Test against yarn 3 HOT 4
- WARNING: Ember CLI v5.2.0 is not tested against Node v20.4.0. S HOT 4
- ember build --watch fails with '[NodeWrapper:4 /path/to/some/folder] is not a SourceNode' when the app name contains 'ember-data' anywhere HOT 10
- incompatible with bun (or bun is incompatible)
- `test` script should not run `lint:*` scripts HOT 1
- Drop Node 16 in ember-cli 5.4 HOT 4
- Fails to fingerprint in production mode HOT 3
- set `declaration: false` in tsconfig.json for the app blueprint.
- TypeScript error on new project: 'SetupTestOptions' is a type and must be imported using a type-only import when 'verbatimModuleSyntax' is enabled. HOT 2
- Run Prettier standalone HOT 2
- fingerprint.prepend not working for the chunk js files HOT 3
- [email protected] has security vulnerability HOT 2
- Setup ESLint for gjs/gts
- You passed the '--typescript' flag but there is no TypeScript blueprint available. A JavaScript blueprint will be generated instead. HOT 7
- new typescript component blueprint gives eslint warning HOT 3
- Fresh app 404's on missing assets/test-support.css HOT 8
- Could it be possible to use `--directory` to output to an already existing directory? HOT 1
- Add a `--no-ci-provider` flag for `ember new`
- App blueprint has invalid ESLint config HOT 4
- Add bun support for Ember CLI projects HOT 1
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 ember-cli.