Documentation ¶
Index ¶
Constants ¶
View Source
const ( // Error is the opentracing tag name that represents an error Error = "error" // KanaliProxyName is the opentracing tag name that represents an APIProxy name KanaliProxyName = "kanali.proxy.name" // KanaliProxyNamespace is the opentracing tag name that represents an APIProxy namespace KanaliProxyNamespace = "kanali.proxy.namespace" // HTTPRequest is the opentracing tag name that represents the existence on an HTTP request HTTPRequest = "http.request" // HTTPRequestMethod is the opentracing tag name that represents an HTTP request method HTTPRequestMethod = "http.request.method" // HTTPRequestBody is the opentracing tag name that represents an HTTP request body HTTPRequestBody = "http.request.body" // HTTPRequestHeaders is the opentracing tag name that represents an HTTP request headers HTTPRequestHeaders = "http.request.headers" // HTTPRequestURLPath is the opentracing tag name that represents an HTTP URL path HTTPRequestURLPath = "http.request.url.path" // HTTPRequestURLHost is the opentracing tag name that represents an HTTP URL host HTTPRequestURLHost = "http.request.url.host" // HTTPRequestURLQuery is the opentracing tag name that represents an HTTP URL query HTTPRequestURLQuery = "http.request.url.query" // HTTPResponse is the opentracing tag name that represents the existence on an HTTP response HTTPResponse = "http.response" // HTTPResponseBody is the opentracing tag name that represents an HTTP response body HTTPResponseBody = "http.response.body" // HTTPResponseHeaders is the opentracing tag name that represents an HTTP response headers HTTPResponseHeaders = "http.response.headers" // HTTPResponseStatusCode is the opentracing tag name that represents an HTTP response status code HTTPResponseStatusCode = "http.response.status.code" )
Variables ¶
This section is empty.
Functions ¶
func HydrateSpanFromRequest ¶ added in v1.2.0
func HydrateSpanFromRequest(req *http.Request, span opentracing.Span)
HydrateSpanFromRequest adds tags to the given span relating to the given HTTP request
func HydrateSpanFromResponse ¶ added in v1.2.0
func HydrateSpanFromResponse(res *http.Response, span opentracing.Span)
HydrateSpanFromResponse adds tags to the given span relating to the given HTTP response
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.