debugging

package
v0.0.0-...-521bc73 Latest Latest
Warning

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

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

Documentation

Overview

Package debugging provides debug-friendly representations of internal data structures

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
	Operation string
	TopicName string
	ByStatus  map[int8]Stats
}

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

func Kafka

func Kafka(stats map[kafka.Key]*kafka.RequestStats) []RequestSummary

Kafka returns a debug-friendly representation of map[kafka.Key]kafka.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