Documentation ¶
Overview ¶
Package rpctracing contains rpc middlewares to add opentracing support.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ClientComponentTag is added to each client span. ClientComponentTag = ot.Tag{ Key: string(otext.Component), Value: "nprpc.client", } // ServerComponentTag is added to each server span. ServerComponentTag = ot.Tag{ Key: string(otext.Component), Value: "nprpc.server", } )
View Source
var ( // ClientOpName is used to generate operation name of a client span. ClientOpName = func(spec RPCSpec) string { return fmt.Sprintf("RPC Client %s:%s", spec.SvcName(), spec.MethodName()) } // ServerOpName is used to generate operation name of a server span. ServerOpName = func(spec RPCSpec) string { return fmt.Sprintf("RPC Server %s:%s", spec.SvcName(), spec.MethodName()) } )
Functions ¶
func WrapRPCClient ¶
WrapRPCClient adds opentracing support for RPCClient.
func WrapRPCServer ¶
WrapRPCServer adds opentracing support for RPCServer.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.