Versions in this module Expand all Collapse all v1 v1.0.5 Dec 2, 2016 Changes in this version + func HandleConn(ctx context.Context, s ConnStats) + func HandleRPC(ctx context.Context, s RPCStats) + func On() bool + func RegisterConnHandler(f func(context.Context, ConnStats)) + func RegisterConnTagger(t func(context.Context, *ConnTagInfo) context.Context) + func RegisterRPCHandler(f func(context.Context, RPCStats)) + func RegisterRPCTagger(t func(context.Context, *RPCTagInfo) context.Context) + func Start() + func Stop() + func TagConn(ctx context.Context, info *ConnTagInfo) context.Context + func TagRPC(ctx context.Context, info *RPCTagInfo) context.Context + type Begin struct + BeginTime time.Time + Client bool + FailFast bool + func (s *Begin) IsClient() bool + type ConnBegin struct + Client bool + func (s *ConnBegin) IsClient() bool + type ConnEnd struct + Client bool + func (s *ConnEnd) IsClient() bool + type ConnStats interface + IsClient func() bool + type ConnTagInfo struct + LocalAddr net.Addr + RemoteAddr net.Addr + type End struct + Client bool + EndTime time.Time + Error error + func (s *End) IsClient() bool + type InHeader struct + Client bool + Compression string + FullMethod string + LocalAddr net.Addr + RemoteAddr net.Addr + WireLength int + func (s *InHeader) IsClient() bool + type InPayload struct + Client bool + Data []byte + Length int + Payload interface{} + RecvTime time.Time + WireLength int + func (s *InPayload) IsClient() bool + type InTrailer struct + Client bool + WireLength int + func (s *InTrailer) IsClient() bool + type OutHeader struct + Client bool + Compression string + FullMethod string + LocalAddr net.Addr + RemoteAddr net.Addr + WireLength int + func (s *OutHeader) IsClient() bool + type OutPayload struct + Client bool + Data []byte + Length int + Payload interface{} + SentTime time.Time + WireLength int + func (s *OutPayload) IsClient() bool + type OutTrailer struct + Client bool + WireLength int + func (s *OutTrailer) IsClient() bool + type RPCStats interface + IsClient func() bool + type RPCTagInfo struct + FullMethodName string