tracer

package
v1.2.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2017 License: Apache-2.0 Imports: 13 Imported by: 4

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

func Jaeger

func Jaeger() (opentracing.Tracer, io.Closer, error)

Jaeger creates a new opentracing compatible tracer

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL