Documentation ¶
Index ¶
- func StreamClientInterceptor(target string, serviceName string) grpc.StreamClientInterceptor
- func StreamServerInterceptor(serverName string) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(target string, serviceName string) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(serverName string) grpc.UnaryServerInterceptor
- type StackTracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamClientInterceptor ¶
func StreamClientInterceptor(target string, serviceName string) grpc.StreamClientInterceptor
StreamClientInterceptor returns an interceptor that traces a streaming RPC from a gRPC client to a server using AppOptics, by propagating the distributed trace's context from client to server using gRPC metadata. The client span starts with the first message and ends when all request and response messages have finished streaming.
func StreamServerInterceptor ¶
func StreamServerInterceptor(serverName string) grpc.StreamServerInterceptor
StreamServerInterceptor returns an interceptor that traces gRPC streaming server RPCs using AppOptics. Each server span starts with the first message and ends when all request and response messages have finished streaming.
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(target string, serviceName string) grpc.UnaryClientInterceptor
UnaryClientInterceptor returns an interceptor that traces a unary RPC from a gRPC client to a server using AppOptics, by propagating the distributed trace's context from client to server using gRPC metadata.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(serverName string) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns an interceptor that traces gRPC unary server RPCs using AppOptics. If the client is using UnaryClientInterceptor, the distributed trace's context will be read from the client.
Types ¶
type StackTracer ¶
type StackTracer interface {
StackTrace() errors.StackTrace
}
StackTracer is a copy of the stackTracer interface of pkg/errors.
This may be fragile as stackTracer is not imported, just try our best though.