micro-analytics / micro-analytics/micro-analytics-cli
wildcard search in ?all
まだ誰も着手していません。
- 主要言語
- JavaScript
- スター
- 732
- フォーク
- 39
- PR マージ指標
- 30日以内にマージされた PR はありません
説明
So, trying to mimic some really expressive behavior that grafana uses. They allow you to track metrics with keys like: `a.b.c.d.e` and you can do analytics/querying based on searches of `a.b.*.d.e`. Note, using dots instead of slashes wouldn't change how this is implemented.
A real world scenario around this:
`myapp.*.logins`
where the convention used is `myapp.version.logins`.
That query (`services.com/myapp.*.logins?all=true`) allows you to get all login event metrics across all versions/deploys and can compare. A/B testing and a lot of things would be enabled by this.
I'd imagine we would just pass the raw string to the db adaptor and let them figure out how to parse/support it. For the file-db adaptor, should be a simple change of the filter to use a regex. Something along the lines of `key.match(new RegExp('^' + options.pathname.replace('*','.*')))`
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
?all クエリの処理と file-db アダプターを追跡し、pathname のフィルタリングがどこで適用されているかを確認します。アダプターが生のキー パターンをどのように受け取るかを確認し、myapp.*.logins のようなクエリが既存の完全一致キーの動作を維持しながら、バージョンをまたいでキーに一致することを検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- javascript, nodejs
- 領域
- api, backend, database
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100