optl

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LaunchOptl

func LaunchOptl(url string, context context.Context) *sdktrace.TracerProvider

func NewHTTPExporter

func NewHTTPExporter(url string, context context.Context) sdktrace.SpanExporter

func NewTraceProvider

func NewTraceProvider(exp sdktrace.SpanExporter, resource *resource.Resource) *sdktrace.TracerProvider

Types

type LatencyTracerOpts

type LatencyTracerOpts struct {
	Name    string
	Version string
}

type MyKey

type MyKey string

type Tracer

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

func NewLatencyTracer

func NewLatencyTracer(tp trace.TracerProvider, opts LatencyTracerOpts) *Tracer

func (*Tracer) AddError

func (h *Tracer) AddError(spanName string, err error)

func (*Tracer) AddEvent

func (h *Tracer) AddEvent(spanName string, eventName string)

func (*Tracer) AddEventAt

func (h *Tracer) AddEventAt(spanName string, eventName string, when time.Time)

func (*Tracer) End

func (h *Tracer) End(spanName string, labels ...string)

func (*Tracer) EndAt

func (h *Tracer) EndAt(spanName string, when time.Time, labels ...string)

func (*Tracer) Start

func (h *Tracer) Start(spanName string)

func (*Tracer) StartAt

func (h *Tracer) StartAt(spanName string, when time.Time)

Jump to

Keyboard shortcuts

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