ScalaConsultants / akka-periscope

Akka plugin to collect various data about actors
MIT License
17 stars 2 forks source link

Expose Akka's Executor stats #9

Open jczuchnowski opened 4 years ago

jczuchnowski commented 4 years ago

Akka's Dispatcher is a Java Executor. We should be able to expose its current state at least similarly to what Slick is doing.

vpavkin commented 4 years ago

It appears that Slick has a custom wrapper around the raw executor. And this wrapper is collecting and serving metrics. I'm not sure the same thing is possible without a custom wrapper. And it's a lot to ask from the end user to put this custom executor in their app. We can get some data using Thread.getAllStackTraces in a hacky way, but it also feels pretty bad.