telemetry

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2022 License: MIT Imports: 23 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DefaultServiceName = "service"
	DefaultTracerName  = "github.com/foomo/keel/tracer"
)

Variables

View Source
var (
	ServiceName = DefaultServiceName
	TracerName  = DefaultTracerName
)

Functions

func Controller added in v0.2.0

func Controller() *otelcontroller.Controller

func End

func End(sp trace.Span, err error)

func Exporter added in v0.2.0

func Exporter() sdktrace.SpanExporter

func Meter added in v0.2.0

func Meter(instrumentationName string, opts ...metric.MeterOption) metric.MeterMust

func NewPrometheus added in v0.2.0

func NewPrometheus(resource *otelresource.Resource) (*otelprometheus.Exporter, error)

func SetLogger added in v0.2.2

func SetLogger(l *zap.Logger)

func Start

func Start(ctx context.Context, spanName string, opts ...trace.SpanOption) (context.Context, trace.Span)

func TracerProvider added in v0.2.0

func TracerProvider() trace.TracerProvider

Types

type ErrorHandler added in v0.2.2

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

func (*ErrorHandler) Handle added in v0.2.2

func (h *ErrorHandler) Handle(err error)

func (*ErrorHandler) SetLogger added in v0.2.2

func (h *ErrorHandler) SetLogger(l *zap.Logger)

Jump to

Keyboard shortcuts

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