Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetTraceId ¶ added in v0.20.0
GetTraceId returns the X-trace-id from the last response. If no trace-id can be found, it returns an empty string. Prerequisite is, that WithCaptureHTTPResponse was executed before. It reads the X-trace-id header from the attached http response within the context.
func WithCaptureHTTPRequest ¶ added in v0.12.0
WithCaptureHTTPRequest adds the raw HTTP request retrieval annotation to the parent context. After the request has completed, the req parameter will contain the raw HTTP request made to the API.
func WithCaptureHTTPResponse ¶
WithCaptureHTTPResponse adds the raw HTTP response retrieval annotation to the parent context. The resp parameter will contain the raw HTTP response after the request has completed.
Types ¶
This section is empty.