trace

package
v2.0.0-...-55ffeb8 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: GPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateHttpTimingTracer

func GenerateHttpTimingTracer(
	traceable Traceable,
	debug debug.DebugLevel,
) *httptrace.ClientTrace

Types

type TraceStats

type TraceStats struct {
	DnsStart               httptrace.DNSStartInfo
	DnsDone                httptrace.DNSDoneInfo
	ConnInfo               httptrace.GotConnInfo
	HttpInfo               httptrace.WroteRequestInfo
	TLSConnInfo            tls.ConnectionState
	ConnectDoneError       error
	DnsStartTime           time.Time
	DnsDoneTime            time.Time
	TLSStartTime           utilities.Optional[time.Time]
	TLSDoneTime            utilities.Optional[time.Time]
	ConnectStartTime       time.Time
	ConnectDoneTime        time.Time
	ConnectionReused       bool
	GetConnectionStartTime time.Time
	GetConnectionDoneTime  time.Time
	HttpWroteRequestTime   time.Time
	HttpResponseReadyTime  time.Time
}

func NewStats

func NewStats() *TraceStats

func (*TraceStats) String

func (s *TraceStats) String() string

type Traceable

type Traceable interface {
	SetDnsStartTimeInfo(time.Time, httptrace.DNSStartInfo)
	SetDnsDoneTimeInfo(time.Time, httptrace.DNSDoneInfo)
	SetConnectStartTime(time.Time)
	SetConnectDoneTimeError(time.Time, error)
	SetGetConnTime(time.Time)
	SetGotConnTimeInfo(time.Time, httptrace.GotConnInfo)
	SetTLSHandshakeStartTime(time.Time)
	SetTLSHandshakeDoneTimeState(time.Time, tls.ConnectionState)
	SetHttpWroteRequestTimeInfo(time.Time, httptrace.WroteRequestInfo)
	SetHttpResponseReadyTime(time.Time)
}

Jump to

Keyboard shortcuts

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