Documentation ¶
Index ¶
- Constants
- func GetTraceID(ctx context.Context) string
- func GetTraceURL(ctx context.Context) (u string)
- func InitOpenTracing() 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 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
Constants ¶
View Source
const MaxPacketSize = int(65000 * candihelper.Byte)
MaxPacketSize max packet size of UDP
Variables ¶
This section is empty.
Functions ¶
func LogEvent ¶ added in v1.3.6
LogEvent trace
func StartTrace ¶
func StartTrace(ctx context.Context, operationName string) interfaces.Tracer
StartTrace starting trace child span from parent span
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.