instrumentation

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ServiceName is our service name in external tracing and metrics services.
	ServiceName = "nri-resource-policy"
)

Variables

View Source
var (

	// Attribute aliases tracing.Attribute(), for SetIdentity().
	Attribute = tracing.Attribute
)

Functions

func HTTPServer added in v0.3.0

func HTTPServer() *http.Server

HTTPServer returns our HTTP server.

func Reconfigure added in v0.3.0

func Reconfigure(newCfg *cfgapi.Config) error

Reconfigure our instrumentation services.

func RegisterGatherer

func RegisterGatherer(g prometheus.Gatherer)

RegisterGatherer registers a prometheus metrics gatherer.

func Restart

func Restart() error

Restart our instrumentation services.

func SetIdentity

func SetIdentity(attrs ...KeyValue)

SetIdentity sets (extra) process identity attributes for tracing.

func Start

func Start() error

Start our instrumentation services.

func Stop

func Stop()

Stop our instrumentation services.

Types

type KeyValue

type KeyValue = tracing.KeyValue

KeyValue aliases tracing.KeyValue, for SetIdentity().

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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