Skip to content

Instantly share code, notes, and snippets.

David Robinson zxvdr

  • Twitter
View GitHub Profile
View ssh
package main
import (
"bytes"
"code.google.com/p/go.crypto/ssh"
"fmt"
"log"
"net"
"os"
)
@zxvdr
zxvdr / gist:5624054
Created May 21, 2013
RPC tracing for Golang (ala Dapper)
View gist:5624054
diff --git a/client.go b/client.go
index 4b0c9c3..8ac98e4 100644
--- a/client.go
+++ b/client.go
@@ -32,6 +32,7 @@ type Call struct {
Reply interface{} // The reply from the function (*struct).
Error error // After completion, the error status.
Done chan *Call // Strobes when call is complete.
+ Trace uint32 // unique id used for tracing
}
You can’t perform that action at this time.