telemetry

package
v0.0.0-...-b3fc11c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateMetrics

func CreateMetrics(namespace string)

func RecordAPIDuration

func RecordAPIDuration(path string, method string, code int, start time.Time)

func RecordClientApiRequestDuration

func RecordClientApiRequestDuration(name string, err error, start time.Time)

func RecordEventLoopDuration

func RecordEventLoopDuration(name string, err error, start time.Time)

func RecordKeyValEvent

func RecordKeyValEvent(name string, value string)

func SetUpJaegerTracerProvider

func SetUpJaegerTracerProvider(aggregatorURL string, service string) (*tracesdk.TracerProvider, error)

func SetUpLogger

func SetUpLogger(level string) error

func SetUpNoopTracerProvider

func SetUpNoopTracerProvider() trace.TracerProvider

func Setup

func Setup(ctx context.Context, logLevel string, serviceName string, prometheusPort int, jaegerURL string) (trace.TracerProvider, error, func())

func SetupPrometheus

func SetupPrometheus(port int)

Types

This section is empty.

Jump to

Keyboard shortcuts

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