Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Middleware ¶
Middleware return middleware which will extract the trace context from headers and starts a new child span. If there's no parent context, it will start a new root span and adds the 'span.missing' tag to the span. It will also add correlation and http related tags, like the http method, status code etc..
func WithContext ¶
WithContext creates a new Request, combining req.Context and stdlib ctx. It will copy gentleman Context values, but also keep the values stored in the stdlib context. The already set deadline/timeout and cancel on the stdlib context will work too.
Types ¶
Click to show internal directories.
Click to hide internal directories.