httptrace

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package httptrace instruments existing HTTP clients and RoundTrippers without changing their timeouts, redirects, request bodies or connection pools. Construction and policy selection belong to the caller; this package neither initializes telemetry exporters nor constructs a new network transport.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoHTTP

func DoHTTP(client *http.Client, request *http.Request) (*http.Response, error)

DoHTTP preserves the caller's timeouts, redirects and cookie jar. It does not mutate shared clients or transports; the underlying connection pool is reused.

func TracedTransport

func TracedTransport(base http.RoundTripper) http.RoundTripper

TracedTransport propagates the current W3C context and records connection phases without capturing addresses, credentials, headers or payloads.

Types

This section is empty.

Jump to

Keyboard shortcuts

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