Source File
server_stats_handler.go
Belonging Package
go.opencensus.io/plugin/ocgrpc
package ocgrpc
import (
)
func ( *ServerHandler) ( context.Context, *stats.RPCTagInfo) context.Context {
:= time.Now()
if == nil {
if grpclog.V(2) {
grpclog.Infof("opencensus: TagRPC called with nil info.")
}
return
}
:= &rpcData{
startTime: ,
method: .FullMethodName,
}
:= .extractPropagatedTags()
= tag.NewContext(, )
, _ = tag.New(, tag.Upsert(KeyServerMethod, methodName(.FullMethodName)))
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. |