coverband icon indicating copy to clipboard operation
coverband copied to clipboard

Track Gem Support, please bring back

Open gdlninja opened this issue 3 years ago • 1 comments

I know previous version of Coverband allowed for tracking gems to help determine what was being used and what could be removed cleanly. I am looking for this functionality to be brought back into the project or do you have an alternative?

Thanks!

gdlninja avatar Jun 17 '22 18:06 gdlninja

odd, did this get covered somewhere online recently? This just came up as another issue a few days prior to this ticket, you can read more about it there https://github.com/danmayer/coverband/issues/451

As noted, tracking a single gem isn't performant with how Coverband works, so after various experimentation and attempts to make it more performant, that feature was removed. It has an unacceptable level of overhead. I recommend instrumenting the gem directly with your aggregated logging tool or observability tool like data dog.

danmayer avatar Jun 20 '22 21:06 danmayer

I am closing this as there are a number of reasons tracking gem usage is a different sort of problem than app tracking.

danmayer avatar Apr 20 '24 23:04 danmayer

We had tried this a while back and it was absurdly slow.

kbaum avatar Apr 22 '24 10:04 kbaum

One idea here is to somehow only track any usage at all of the gem and then just somehow immediately stop tracking the coverage of that gem for the life of the process. We only really care if that gem is called at all. Not at all sure if that's possible or just wishful thinking.

kbaum avatar Apr 22 '24 10:04 kbaum

yeah, it was far to slow to track all gem usage... I think something more targetted that would only track specific gems could help, but I also think many folks are looking for gem usage across different micro-services and coverband is more setup for single service tracking... So I think probably just a different enough domain that it isn't likely something to add back in here...

Even the old coverband approach before using Coverage.so where things tracked via tracepoint might be a better way to target a specific gem...

danmayer avatar Apr 22 '24 17:04 danmayer