Help us shape the future of Go! Take the 2026 Go Developer Survey

metrics

package
v0.81.3 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2026 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

type Metrics struct {
	Meter api.Meter

	Endpoint string

	*http.Server
	// contains filtered or unexported fields
}

Metrics holds the metrics information and exposes it

func NewServer

func NewServer(port int, endpoint string) (*Metrics, error)

NewServer initializes and returns a new Metrics instance

func (*Metrics) Shutdown

func (m *Metrics) Shutdown(ctx context.Context) error

Shutdown stops the metrics server

Jump to

Keyboard shortcuts

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