cartant / rxjs-spy

A debugging library for RxJS
https://cartant.github.io/rxjs-spy/
MIT License
702 stars 22 forks source link

Auto tagging #53

Closed ewhauser closed 5 months ago

ewhauser commented 4 years ago

I'm starting to explore rxjs-spy for use in a large Angular application. We have about ~1000 components so there's a large number of observables. Prior to discovering rxjs-spy, I was exploring using a Typescript compiler plugin to automatically generate debugging information for each subscription (i.e. name, location, and code of each subscription) and then using that information for leak detection in my tests.

I was thinking about pivoting this code to use rxjs-spy under the covers instead. Is there any downside to automatically adding tag(...) to every subscription? It's relatively straightforward to do in a compiler plugin - the toughest part seems like coming up with a usable name.

Thanks!

cartant commented 4 years ago

The RxJS Tools that I'm working on do something similar - but not using tag - and a whole lot more. All of my tool-related development is happening there; I don't imagine I will be doing any further work on rxjs-spy.

joshribakoff commented 4 years ago

I subscribed. I'd love to help with it / try it out @cartant