Documentation ¶
Index ¶
- Constants
- func FromContext(ctx context.Context) (traceId string, ok bool)
- func FromHeader(header http.Header) (traceId string, ok bool)
- func FromRequest(req *http.Request) (traceId string, ok bool)
- func NewContext(ctx context.Context, traceId string) context.Context
- func NewTraceId() string
- type Tracer
Constants ¶
View Source
const TraceIdHeaderKey = "X-Request-Id"
Variables ¶
This section is empty.
Functions ¶
func NewTraceId ¶
func NewTraceId() string
Types ¶
Click to show internal directories.
Click to hide internal directories.