koudelka / visualixir

A process/message visualizer for BEAM nodes.💪👁
MIT License
1.32k stars 46 forks source link

Using with Riak #2

Closed gordonguthrie closed 7 years ago

gordonguthrie commented 9 years ago

Hey, nice tool. I work on Riak with Basho and would love to see this message path visualisation work with Riak.

My colleague has a visual tracing tool as well: https://github.com/andytill/erlyberly

If you tell me what the VM version issues are I will see if I can fix them @gordonguthrie or gguthrie@basho.com

koudelka commented 9 years ago

Thanks. :)

Erlyberly looks pretty neat, I'll have to give it a spin some time.

Visualixir sends a module over to the remote node, and spawns a process using it, in order to listen to remote trace messages. It looks like you can't load foreign modules with a certain version skew. That happens here https://github.com/koudelka/visualixir/blob/master/lib/visualixir/tracer.ex#L200.

I think the essence of the problem is to find a way to create a process on the remote node that can relay trace messages back to the local one, without encountering the binary loading issue. Instead of sending over a whole module, I also tried spawning a remote process using an anonymous function, but apparently they're actually tied to the module at compile time, and subject to the same rules.

My guess is that you could probably get around that limitation by doing some string eval stuff, but... yuck. :)

koudelka commented 8 years ago

poke @gordonguthrie :)

koudelka commented 7 years ago

closing due to inactivity, sadly.