Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTraceIDFromRequest ¶
Types ¶
type Service ¶
type Service interface { // Reload service (useful for configuration change). Reload() error // Get global tracer object. GetTracer() opentracing.Tracer }
Service interface.
type Trace ¶
type Trace interface { // Set tag on trace. SetTag(key string, value interface{}) // Get child trace with an operation name. GetChildTrace(operationName string) Trace // Will finish the trace. Finish() // Get trace id as a string (useful for logs). GetTraceID() string // InjectInHTTPHeader will inject span in http header for forwarding. InjectInHTTPHeader(header http.Header) error }
Trace object interface.
func GetTraceFromContext ¶
Click to show internal directories.
Click to hide internal directories.