Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Interceptor ¶
func Interceptor( ctxIn context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (resp interface{}, err error)
Interceptor intercepts and extracts incoming trace data at a grpc server. It expects to find incoming trace ID, the parent and forced child span IDs, (i.e. the context of the outgoing client-side span, along with the trace ID it expects to see used as the remote child). It also expects to find the flag indicating if the client-side span was an infrastructure span or not.
If these flags are not present, the values corresponding to no previous context are used.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.