Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewContext ¶ added in v1.2.8
NewContext new a trace context. NOTE: This method is not thread safe.
func SetGlobalTracer ¶ added in v1.3.0
func SetGlobalTracer(tracer opentracing.Tracer)
SetGlobalTracer ..
Types ¶
type GinTrace ¶ added in v1.2.8
type GinTrace struct {
// contains filtered or unexported fields
}
GinTrace ..
type Trace ¶ added in v1.2.8
type Trace interface { // return current trace id. TraceID() string }
Trace return current trace id.
func FromContext ¶ added in v1.2.8
FromContext returns the trace bound to the context, if any.
Click to show internal directories.
Click to hide internal directories.