telemetry

package
v0.0.0-...-2c1fae0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedProviderType = errors.New("unsupported provider type")

Functions

func Init

func Init(conf *Config) io.Closer

Types

type Config

type Config struct {
	ServiceName string       `json:"serviceName"`
	Disabled    bool         `json:"disabled"`
	Type        ExporterType `json:"type"`

	// Only for jaegger it seems
	Endpoint string `json:"endpoint"`
}

type ExporterType

type ExporterType string
const (
	JAEGGER ExporterType = "jaegger"
	SENTRY  ExporterType = "sentry"
)

type TracerProvider

type TracerProvider = trace.TracerProvider

func GetTracerProvider

func GetTracerProvider() TracerProvider

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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