trace

package
v0.0.0-...-6bf61e2 Latest Latest
Warning

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

Go to latest
Published: May 17, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CallStats

type CallStats struct {
	InputBytes      int           `json:"inputbytes"`
	OutputBytes     int           `json:"outputbytes"`
	Latency         time.Duration `json:"latency"`
	TimeToFirstByte time.Duration `json:"timetofirstbyte"`
}

CallStats records request stats

type Info

type Info struct {
	TraceType Type `json:"type"`

	NodeName string    `json:"nodename"`
	FuncName string    `json:"funcname"`
	Time     time.Time `json:"time"`

	ReqInfo   RequestInfo  `json:"request"`
	RespInfo  ResponseInfo `json:"response"`
	CallStats CallStats    `json:"stats"`

	StorageStats StorageStats `json:"storageStats"`
	OSStats      OSStats      `json:"osStats"`
}

Info - represents a trace record, additionally also reports errors if any while listening on trace.

type OSStats

type OSStats struct {
	Path     string        `json:"path"`
	Duration time.Duration `json:"duration"`
}

OSStats statistics on operating system specific calls.

type RequestInfo

type RequestInfo struct {
	Time     time.Time   `json:"time"`
	Proto    string      `json:"proto"`
	Method   string      `json:"method"`
	Path     string      `json:"path,omitempty"`
	RawQuery string      `json:"rawquery,omitempty"`
	Headers  http.Header `json:"headers,omitempty"`
	Body     []byte      `json:"body,omitempty"`
	Client   string      `json:"client"`
}

RequestInfo represents trace of http request

type ResponseInfo

type ResponseInfo struct {
	Time       time.Time   `json:"time"`
	Headers    http.Header `json:"headers,omitempty"`
	Body       []byte      `json:"body,omitempty"`
	StatusCode int         `json:"statuscode,omitempty"`
}

ResponseInfo represents trace of http request

type StorageStats

type StorageStats struct {
	Path     string        `json:"path"`
	Duration time.Duration `json:"duration"`
}

StorageStats statistics on MinIO Storage layer calls

type Type

type Type int

Type indicates the type of the tracing Info

const (
	// HTTP tracing (MinIO S3 & Internode)
	HTTP Type = iota
	// OS tracing (Golang os package calls)
	OS
	// Storage tracing (MinIO Storage Layer)
	Storage
)

Jump to

Keyboard shortcuts

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