Hey all, was wondering if anyone knows about any w...
# general
a
Hey all, was wondering if anyone knows about any well known tools/libraries to process and analyze pants' workunit logs. I'm trying to print some stats around cache hits/misses and execution times by parsing them, and thought I'd ask before delving in too deep. Thank you very much in advance. 🙂
p
I think @fresh-mechanic-68429 and @curved-manchester-66006 had some PoCs for converting workunits to various tracing backends (honeycomb, otel respectively), but I don't think either of them were public :(
f
I finally converted mine to otel (from honeycomb). Has been useful very helpful for us, I still hope to opensource it at some point. But if you're interesting in doing it on your own, checkout the
WorkunitLoggerCallback
https://github.com/pantsbuild/pants/blob/ff8fd1a2b48dc1f6caf9bc8760373d29ac6ff875/src/python/pants/backend/tools/workunit_logger/rules.py#L46[…]6C29 https://pantsbuild.slack.com/archives/C046T6T9U/p1711732663706429?thread_ts=1711676065.758549&cid=C046T6T9U
p
I'd definitely be interested in using it if you open sourced it in whatever state it's in
a
Thank you both 🙏 😄