Documentation
¶
Index ¶
- func ExtractHTTPToContext(ctx context.Context, r *http.Request) context.Context
- func InjectDataIntoOutMetadata(ctx context.Context, data TraceData) metadata.MD
- func NewOutgoingContextWithData(ctx context.Context) context.Context
- func StreamClientInterceptor() grpc.StreamClientInterceptor
- func StreamServerInterceptor() grpc.StreamServerInterceptor
- func UnaryClientInterceptor() grpc.UnaryClientInterceptor
- func UnaryServerInterceptor() grpc.UnaryServerInterceptor
- func WithValue(ctx context.Context, traceData TraceData) context.Context
- type TraceData
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExtractHTTPToContext ¶
ExtractHTTPToContext extracts metadata from a normal http request and adds it to the context
func InjectDataIntoOutMetadata ¶
InjectDataIntoOutMetadata injects the given trace data into metadata fit for an outgoing context
func NewOutgoingContextWithData ¶
NewOutgoingContextWithData creates a new context with the metadata added
func StreamClientInterceptor ¶
func StreamClientInterceptor() grpc.StreamClientInterceptor
StreamClientInterceptor propagates any user information from the context
func StreamServerInterceptor ¶
func StreamServerInterceptor() grpc.StreamServerInterceptor
StreamServerInterceptor for propagating client information only on the first request on the stream
func UnaryClientInterceptor ¶
func UnaryClientInterceptor() grpc.UnaryClientInterceptor
UnaryClientInterceptor propagates any user information from the context
func UnaryServerInterceptor ¶
func UnaryServerInterceptor() grpc.UnaryServerInterceptor
UnaryServerInterceptor for propagating client information
Types ¶
Click to show internal directories.
Click to hide internal directories.