Source File
client_stats_handler.go
Belonging Package
go.opencensus.io/plugin/ocgrpc
package ocgrpc
import (
)
func ( *ClientHandler) ( context.Context, *stats.RPCTagInfo) context.Context {
:= time.Now()
if == nil {
if grpclog.V(2) {
grpclog.Info("clientHandler.TagRPC called with nil info.")
}
return
}
:= &rpcData{
startTime: ,
method: .FullMethodName,
}
:= tag.FromContext()
if != nil {
:= tag.Encode()
= stats.SetTags(, )
}
return context.WithValue(, rpcDataKey, )
![]() |
The pages are generated with Golds v0.3.2-preview. (GOOS=darwin GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |