Documentation
¶
Overview ¶
Package traces provides utilities for working with OpenTelemetry traces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHeaderAnnotatingRoundTripper ¶
func NewHeaderAnnotatingRoundTripper(base http.RoundTripper) http.RoundTripper
NewHeaderAnnotatingRoundTripper reads the request headers during the roundtrip operation and adds the information as attributes. Please be aware that requests must have a context otherwise the info won't be added.
func NewRoundTripper ¶
func NewRoundTripper(original http.RoundTripper) http.RoundTripper
NewRoundTripper wraps the provided http.RoundTripper with OpenTelemetry instrumentation.
func RecordError ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.