micro-analytics / micro-analytics-cli

Public analytics as a Node.js microservice. No sysadmin experience required! 📈
MIT License
734 stars 39 forks source link

removing leading slash from saved key #27

Closed sean-roberts closed 7 years ago

sean-roberts commented 7 years ago

so when I GET:

service.com/test it will store { "/test": {...} }

I was experimenting with using grafana like namespaces for metrics like name.space.id.a.metric and the only thing that gets in the way is the leading slash.

so service.com/extension.chrome.installed it will store { "/extension.chrome.installed": {...} }

My feeling is that, even if you are wanting to use the paths for tracking, it's a bit redundant to have that leading slash.

mxstbr commented 7 years ago

This is a breaking change, as any people using micro-analytics now who update will lose all of their data :cry:

Let's leave this is as-is for now, and do it together with the views -> counts thing mentioned in #22!