telemetry

package
v0.0.0-...-db1a339 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RecordError

func RecordError(span trace.Span, err error)

Types

type Config

type Config struct {
	Traces TracesConfig
}

type ShutdownProvider

type ShutdownProvider func(ctx context.Context) error

func TracerProvider

func TracerProvider(
	ctx context.Context,
	logger logr.Logger,
	cfg Config,
	appName, appVersion string,
) (trace.TracerProvider, ShutdownProvider, error)

TracerProvider provides Tracers that are used by instrumentation code to trace computational workflows.

type TracesConfig

type TracesConfig struct {
	Enabled       bool
	Address       string
	SamplingRatio *float64
}

Jump to

Keyboard shortcuts

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