metrics

package
v0.0.0-...-910e44f Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FinishedRequest

type FinishedRequest struct {
	*UnfinishedRequest
	Trail     *tracer.Trail
	TLSInfo   netext.TLSInfo
	ErrorCode errors.ErrCode
	ErrorMsg  string
}

type MetricDispatcher

type MetricDispatcher struct {
	State       *lib.State
	TagsAndMeta *metrics.TagsAndMeta
	// contains filtered or unexported fields
}

func NewMetricDispatcher

func NewMetricDispatcher(tags *metrics.TagsAndMeta, state *lib.State) *MetricDispatcher

func (*MetricDispatcher) ProcessLastSavedRequest

func (t *MetricDispatcher) ProcessLastSavedRequest(ctx context.Context, lastErr error) *FinishedRequest

func (*MetricDispatcher) SaveCurrentRequest

func (t *MetricDispatcher) SaveCurrentRequest(ctx context.Context, currentRequest *UnfinishedRequest)

type UnfinishedRequest

type UnfinishedRequest struct {
	Ctx      context.Context
	Trail    *tracer.Trail
	Request  *http.Request
	Response *http.Response
	Err      error
}

UnfinishedRequest stores the Request and the raw result returned from the underlying http.RoundTripper, but before its body has been read

Jump to

Keyboard shortcuts

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