telemetry

package
v0.0.0-...-0751cc3 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(logger *zap.Logger, config *Config) (shutdown func())

Init currently the target for distributed tracing / opentelemetry is local development environments, but this may change in the future to include hosted/deployed environments

func RegisterDBStatsObserver

func RegisterDBStatsObserver(appCtx appcontext.AppContext, config *Config)

RegisterDBStatsObserver creates a custom metric that is updated automatically using an observer

func RegisterRuntimeObserver

func RegisterRuntimeObserver(appCtx appcontext.AppContext, config *Config)

RegisterRuntimeObserver creates a custom metric that is updated automatically using an observer

Types

type Config

type Config struct {
	Enabled          bool
	Endpoint         string
	UseXrayID        bool
	SamplingFraction float64
	CollectSeconds   int
	ReadEvents       bool
	WriteEvents      bool
}

Config defines the config necessary to enable telemetry gathering

Jump to

Keyboard shortcuts

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