tid

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Extract

func Extract(ctx context.Context) string

Extract extracts an tid from the context.

func New

func New(ctx context.Context) (string, context.Context)

New returns a TID(testing ID) and a context which contains the TID. If passed ctx already contains a TID, then the TID will be returned.

func NewGRPCHeaderPropagator

func NewGRPCHeaderPropagator() grpc.UnaryServerInterceptor

NewGRPCHeaderPropagator returns an UnaryServerInterceptor that propagtes TID header from the incoming context to the outgoin context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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