metrics

package
v1.40.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func APIMiddleware

func APIMiddleware(metrics *Metrics) fiber.Handler

func MetricsHandler

func MetricsHandler() fiber.Handler

Types

type Metrics

type Metrics struct {
	// contains filtered or unexported fields
}

func SetupMetrics

func SetupMetrics() (*Metrics, error)

setupOTelSDK bootstraps the OpenTelemetry pipeline. If it does not return an error, make sure to call shutdown for proper cleanup.

func (*Metrics) ObserveAPICall

func (m *Metrics) ObserveAPICall(method string, path string, duration float64)

Jump to

Keyboard shortcuts

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