Documentation ¶
Overview ¶
Package httptrace provides functionalities to trace HTTP requests that are commonly required and used across contrib/** integrations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FinishRequestSpan ¶
func FinishRequestSpan(s tracer.Span, status int, opts ...tracer.FinishOption)
FinishRequestSpan finishes the given HTTP request span and sets the expected response-related tags such as the status code. Any further span finish option can be added with opts.
func StartRequestSpan ¶
func StartRequestSpan(r *http.Request, opts ...pobptrace.StartSpanOption) (tracer.Span, context.Context)
StartRequestSpan starts an HTTP request span with the standard list of HTTP request span tags (http.method, http.url, http.useragent). Any further span start option can be added with opts.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.