Documentation ¶
Index ¶
- Constants
- Variables
- func Controller() *otelcontroller.Controller
- func End(sp trace.Span, err error)
- func Exporter() sdktrace.SpanExporter
- func Meter(instrumentationName string, opts ...metric.MeterOption) metric.MeterMust
- func NewPrometheus(resource *otelresource.Resource) (*otelprometheus.Exporter, error)
- func SetLogger(l *zap.Logger)
- func Start(ctx context.Context, spanName string, opts ...trace.SpanOption) (context.Context, trace.Span)
- func TracerProvider() trace.TracerProvider
- type ErrorHandler
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 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 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)
Click to show internal directories.
Click to hide internal directories.