instrumentation

package
v0.0.0-...-3ffe1d7 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: ISC Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register()

Register registers the prometheus metrics.

func RequestMiddleware

func RequestMiddleware() graphql.RequestMiddleware

RequestMiddleware is a request middleware that logs metrics for prometheus. It looks busy, but the overhead is less than 10µs.

func ResolverMiddleware

func ResolverMiddleware() graphql.FieldMiddleware

ResolverMiddleware is a resolver middleware that logs metrics for prometheus.

func UnRegister

func UnRegister()

UnRegister unregisters

Types

type Globals

type Globals struct {
	sync.Mutex

	Queries []string
	Failed  bool
}

Globals is monitoring data.

Jump to

Keyboard shortcuts

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