traces

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2025 License: GPL-3.0 Imports: 9 Imported by: 0

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

func RecordError(ctx context.Context, err error, options ...trace.EventOption) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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