telemetry

package
v0.0.0-...-5be53fc Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2021 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddErrorEvent

func AddErrorEvent(ctx context.Context, err error)

AddErrorEvent records the error to the current span.

Types

type ShutdownMetrics

type ShutdownMetrics func(ctx context.Context) error

ShutdownMetrics is a delegate that closes the metrics.

func SetupMetrics

func SetupMetrics(service string) (ShutdownMetrics, error)

SetupMetrics sets the global OpenTelemetry MeterProvider configured to use the Prometheus exporter and will exposes it on port 2222.

type ShutdownTracing

type ShutdownTracing func(ctx context.Context) error

ShutdownTracing is a delegate that closes the tracing.

func SetupTracing

func SetupTracing(service, url string) (ShutdownTracing, error)

SetupTracing sets the global OpenTelemetry TracerProvider configured to use the Jaeger exporter that will send spans to the provided url. The TracerProvider will also use a Resource configured with the information about the application.

Jump to

Keyboard shortcuts

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