getsentry / sentry

Developer-first error tracking and performance monitoring
https://sentry.io
Other
39.22k stars 4.21k forks source link

feat(stories): Add RouteAnalyticsContextProvider to stories so we can see what is viewed #81108

Closed ryan953 closed 6 hours ago

ryan953 commented 19 hours ago

I realized recently that we could have analytics about which story files are most commonly referenced. It would help to know what's used often because it might indicate something that needs more attention, similarly something not referenced might be because it's either intuitive, or unused in new code.

This is a half step though. This RouteAnalyticsContextProvider used relies on the react-hook:route-activated hook provided to the HookStore, in dev that won't be implemented. So the data we collect will only be from people using sentry.io/stories which might not cover everyone.