in plugins/grpc/instrument.go [49:115]
func (i *Instrument) Points() []*instrument.Point {
return []*instrument.Point{
{
PackagePath: "",
At: instrument.NewMethodEnhance("*ClientConn", "Invoke",
instrument.WithArgType(0, "context.Context"),
instrument.WithArgType(1, "string"),
instrument.WithResultCount(1),
instrument.WithResultType(0, "error")),
Interceptor: "ClientUnaryInterceptor",
},
{
PackagePath: "",
At: instrument.NewMethodEnhance("*Server", "handleStream",
instrument.WithArgsCount(3),
instrument.WithArgType(0, "transport.ServerTransport"),
instrument.WithArgType(1, "*transport.Stream"),
instrument.WithArgType(2, "*traceInfo")),
Interceptor: "ServerHandleStreamInterceptor ",
},
{
PackagePath: "",
At: instrument.NewMethodEnhance("*Server", "processUnaryRPC",
instrument.WithArgsCount(5),
instrument.WithArgType(0, "transport.ServerTransport"),
instrument.WithArgType(1, "*transport.Stream"),
instrument.WithArgType(2, "*serviceInfo"),
instrument.WithArgType(3, "*MethodDesc"),
instrument.WithArgType(4, "*traceInfo"),
instrument.WithResultCount(1),
instrument.WithResultType(0, "error")),
Interceptor: "ServerUnaryInterceptor",
},
{
PackagePath: "",
At: instrument.NewMethodEnhance("*clientStream", "SendMsg",
instrument.WithArgsCount(1),
instrument.WithArgType(0, "interface{}"),
instrument.WithResultCount(1),
instrument.WithResultType(0, "error")),
Interceptor: "ClientSendMsgInterceptor",
},
{
PackagePath: "",
At: instrument.NewMethodEnhance("*clientStream", "RecvMsg",
instrument.WithArgsCount(1),
instrument.WithArgType(0, "interface{}"),
instrument.WithResultCount(1),
instrument.WithResultType(0, "error")),
Interceptor: "ClientRecvMsgInterceptor",
},
{
PackagePath: "",
At: instrument.NewMethodEnhance("*Server", "sendResponse",
instrument.WithArgsCount(6),
instrument.WithArgType(0, "transport.ServerTransport"),
instrument.WithArgType(1, "*transport.Stream"),
instrument.WithArgType(2, "interface{}"),
instrument.WithArgType(3, "Compressor"),
instrument.WithArgType(4, "*transport.Options"),
instrument.WithArgType(5, "encoding.Compressor"),
instrument.WithResultCount(1),
instrument.WithResultType(0, "error")),
Interceptor: "ServerSendResponseInterceptor",
},
}
}