telemetry

package
v0.0.0-...-a400e20 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2020 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const PRETTY = "pretty"
View Source
const PROMETHEUS = "prometheus"
View Source
const STDOUT = "stdout"

Variables

This section is empty.

Functions

func InitMeter

func InitMeter() func()

InitMeter initializes the global metric provider.

func InitTracer

func InitTracer() func()

InitTracer initializes the global trace provider.

func OpenTelemetryMiddleware

func OpenTelemetryMiddleware(next http.Handler) http.Handler

OpenTelemetryMiddleware adds monitoring around HTTP requests. Be careful not to add anything here that captures personally-identify information such as IP addresses.

Types

type Cleanuper

type Cleanuper interface {
	Cleanup()
}

func Initialize

func Initialize() Cleanuper

Jump to

Keyboard shortcuts

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