apple / swift-cluster-membership

Distributed Membership Protocol implementations in Swift
https://apple.github.io/swift-cluster-membership/
Apache License 2.0
201 stars 20 forks source link

Integrate swift-tracing into SWIM #30

Open ktoso opened 4 years ago

ktoso commented 4 years ago

It would be quite nice to optionally be able to pass around baggage context in such way that tracing will just work:

we'd small fun traces of the pings and pingReq (this one is more interesting since it performs a "hop" through a node, so that's nice to view).

We should also visualize a pingRequest as containing all of the pings this causes.

Tracing: https://github.com/slashmo/gsoc-swift-tracing

ktoso commented 4 years ago

Ah to be clear: this is unlikely to be running with tracing in production I think, but if we had it on/off switchable with an envelope that could be quite great.

I think it would be a great teaching and visalization tool and it's more interesting than request-response calls, esp a pingRequest can be "fun".