httptrace

package
v0.0.0-...-93e21f3 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = http.DefaultClient

Functions

func ContextTraceParent

func ContextTraceParent(ctx Context) string

ContextTraceParent returns a string for use as "traceparent" header, or empty string.

func DoPropagate

func DoPropagate(r *http.Request) (*http.Response, error)

DoPropagate calls DefaultClient.Do. If trace context is found, the request header is modified by adding "traceparent".

Types

This section is empty.

Jump to

Keyboard shortcuts

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