Documentation ¶
Index ¶
- Constants
- func GetTraceID(ctx context.Context) string
- func GetTraceURL(ctx context.Context) (u string)
- func InitOpenTracing(param Param) error
- func Log(ctx context.Context, key string, value interface{})
- func LogEvent(ctx context.Context, event string, payload ...interface{})
- func SetError(ctx context.Context, err error)
- func SkipTraceContext(ctx context.Context) context.Context
- func StartTrace(ctx context.Context, operationName string) interfaces.Tracer
- func WithTraceFunc(ctx context.Context, operationName string, ...)
- func WithTraceFuncTracer(ctx context.Context, operationName string, fn func(t interfaces.Tracer))
- type GRPCMetadataReaderWriter
- type Param
Constants ¶
View Source
const MaxPacketSize = int(65000 * candihelper.Byte)
MaxPacketSize max packet size of UDP
Variables ¶
This section is empty.
Functions ¶
func InitOpenTracing ¶
InitOpenTracing with agent and service name in parameter
func SkipTraceContext ¶
SkipTraceContext inject to context for skip span tracer
func StartTrace ¶
func StartTrace(ctx context.Context, operationName string) interfaces.Tracer
StartTrace starting trace child span from parent span
func WithTraceFunc ¶
func WithTraceFunc(ctx context.Context, operationName string, fn func(context.Context, map[string]interface{}))
WithTraceFunc functional with context and tags in function params
func WithTraceFuncTracer ¶
func WithTraceFuncTracer(ctx context.Context, operationName string, fn func(t interfaces.Tracer))
WithTraceFuncTracer functional with Tracer instance in function params
Types ¶
type GRPCMetadataReaderWriter ¶
GRPCMetadataReaderWriter grpc metadata
func (GRPCMetadataReaderWriter) ForeachKey ¶
func (mrw GRPCMetadataReaderWriter) ForeachKey(handler func(string, string) error) error
ForeachKey method
func (GRPCMetadataReaderWriter) Set ¶
func (mrw GRPCMetadataReaderWriter) Set(key, value string)
Set method
Click to show internal directories.
Click to hide internal directories.