debugging

package
v0.0.0-...-4dd3f74 Latest Latest
Warning

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

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

Documentation

Overview

Package debugging provides a debugging view of the HTTP protocol.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	IP   string
	Port uint16
}

Address represents represents a IP:Port

type RequestSummary

type RequestSummary struct {
	Client      Address
	Server      Address
	DNS         string
	Path        string
	Method      string
	ByStatus    map[uint16]Stats
	StaticTags  uint64
	DynamicTags []string
}

RequestSummary represents a (debug-friendly) aggregated view of requests matching a (client, server, path, method) tuple

func HTTP

func HTTP(stats map[http.Key]*http.RequestStats, dns map[util.Address][]dns.Hostname) []RequestSummary

HTTP returns a debug-friendly representation of map[http.Key]http.RequestStats

type Stats

type Stats struct {
	Count              int
	FirstLatencySample float64
	LatencyP50         float64
}

Stats consolidates request count and latency information for a certain status code

Jump to

Keyboard shortcuts

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