Documentation ¶
Index ¶
- Constants
- Variables
- func GetSpanID(span opentracing.Span) string
- func GetTraceID(span opentracing.Span) string
- func NewJaegerTracer(connCfg *Config, serviceName string) (opentracing.Tracer, io.Closer, error)
- func SetCommonTag(ctx context.Context, span opentracing.Span)
- func SetError(span opentracing.Span, err error)
- func SetRequest(span opentracing.Span, request string)
- func SetResponse(span opentracing.Span, resp string)
- type Config
Constants ¶
View Source
const ( FieldLogID = "Log-Id" FieldTraceID = "Trace-Id" FieldSpanID = "Span-Id" )
View Source
const ( LogFieldsRequest = "request" LogFieldsResponse = "response" LogFieldsArgs = "args" )
Variables ¶
View Source
var Tracer opentracing.Tracer
Functions ¶
func GetTraceID ¶
func GetTraceID(span opentracing.Span) string
func NewJaegerTracer ¶
func SetCommonTag ¶
func SetRequest ¶ added in v1.0.23
func SetRequest(span opentracing.Span, request string)
func SetResponse ¶
func SetResponse(span opentracing.Span, resp string)
Types ¶
Click to show internal directories.
Click to hide internal directories.