server

package
v0.0.0-...-3e52749 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 26, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL