# Functions
创建默认的日志配置.
完成JaegerSpan.
No description provided by the author
No description provided by the author
从rpcx context中提取tracer span与元数据,如果提取不到,则返回nil,nil.
从rpcx context中提取tracer span,如果提取不到,则返回nil.
获取Jaeger Tracer.
*
* 初始化日志输出规则
*/.
将JaegerSpan注入到当前context输入: ctx: 当前上下文 span: 要注入到上下文的JaegerSpan.
将span信息与一些元数据注入到rpcx context中输入: meta:元数据输出: rpc context 错误.
将span注入到http header.
将span信息注入到map[string]string.
将span信息注入到rpcx context中输入: ctx: rpcx客户端上下文实例输出: context 错误.
No description provided by the author
创建异步writer channelCap:通道容量,默认为5000 writer:默认为os.Stdout, 输出到控制台.
创建Jaeger输入: serviceName:当前服务名称 addr: jaeger agent地址.
创建JaegerSpan,如果span为nil,则返回nil.
No description provided by the author
No description provided by the author
开启一个tracer span,并跟随指定span,如果父级span为nil,则开启一个新的span 如果未启用tracer,则返回nil,nil输入: seguito:被跟随的span输出: tracer span span的finish函数.
开启一个tracer span 如果未启用tracer,则返回nil,nil输出: tracer span span的finish函数.
开启一个tracer span,并设置父级span,如果父级span为nil,则开启一个新的span 如果未启用tracer,则返回nil,nil输出: tracer span span的finish函数.
开启一个tracer span,从context中提取父级span,如果父级span为nil,则开启一个新的span 如果未启用tracer,则返回nil,nil输出: tracer span span的finish函数.
开启一个tracer span,从http header提取span作为父级, 如果未启用tracer,则返回nil,nil 如果header中没有可提取的span,则开启一个新的span,返回*JaegerSpan,nil输出: tracer span span的finish函数.
tracer是否启用.
在指定tracer作用范围内,进行日志记录.
# Structs
追踪器.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
自定义日志器.
# Interfaces
让logrus.Logger实现该接口.
# Type aliases
No description provided by the author