locl

package
v0.0.0-...-a4c5af9 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2020 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultLogger

type DefaultLogger struct {
}

func (*DefaultLogger) Debugf

func (l *DefaultLogger) Debugf(format string, v ...interface{})

func (*DefaultLogger) Fatalf

func (l *DefaultLogger) Fatalf(format string, v ...interface{})

type LightstepConfig

type LightstepConfig struct {
	ServiceName    string `env:"LS_SERVICE_NAME"`
	ServiceVersion string `env:"LS_SERVICE_VERSION,default=unknown"`
	SatelliteURL   string `env:"LS_SATELLITE_URL,default=ingest.lightstep.com:443"`
	MetricsURL     string `env:"LS_METRICS_URL,default=ingest.lightstep.com:443/metrics"`
	AccessToken    string `env:"LS_ACCESS_TOKEN"`
	Debug          bool   `env:"LS_DEBUG,default=false"`
	Insecure       bool   `env:"LS_INSECURE,default=false"`
	// contains filtered or unexported fields
}

type LightstepOpentelemetry

type LightstepOpentelemetry struct {
	// contains filtered or unexported fields
}

func ConfigureOpentelemetry

func ConfigureOpentelemetry(opts ...Option) LightstepOpentelemetry

func (*LightstepOpentelemetry) Shutdown

func (ls *LightstepOpentelemetry) Shutdown()

type Logger

type Logger interface {
	Fatalf(format string, v ...interface{})
	Debugf(format string, v ...interface{})
}

type Option

type Option func(*LightstepConfig)

func WithAccessToken

func WithAccessToken(accessToken string) Option

func WithDebug

func WithDebug(debug bool) Option

func WithInsecure

func WithInsecure(insecure bool) Option

func WithLogger

func WithLogger(logger Logger) Option

func WithMetricsURL

func WithMetricsURL(url string) Option

func WithSatelliteURL

func WithSatelliteURL(url string) Option

func WithServiceName

func WithServiceName(name string) Option

func WithServiceVersion

func WithServiceVersion(version string) Option

Jump to

Keyboard shortcuts

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