Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type OTLPTracer ¶
type OTLPTracer struct {
// contains filtered or unexported fields
}
OTLPTracer is a tracer that uses OpenTelemetry to send traces to an OTLP collector
func NewOTLPTracer ¶
func NewOTLPTracer(config *TracerConfig) (*OTLPTracer, error)
func NewTmpOLTPTracer ¶
func NewTmpOLTPTracer() *OTLPTracer
func (*OTLPTracer) EndSpan ¶
func (t *OTLPTracer) EndSpan(ctx context.Context)
func (*OTLPTracer) GetTraceID ¶
func (t *OTLPTracer) GetTraceID(ctx context.Context) string
type Option ¶
type Option func(f *TracerConfig)
func WithCollectorURL ¶
func WithEnabled ¶
func WithInsecure ¶
func WithProvider ¶
func WithServiceName ¶
type Tracer ¶
type Tracer interface { StartSpan(ctx context.Context, name string) context.Context EndSpan(ctx context.Context) GetTraceID(ctx context.Context) string GetSpanID(ctx context.Context) string }
Tracer is the interface for the tracer
func TracerFactory ¶
TracerFactory returns a tracer based on the type
Click to show internal directories.
Click to hide internal directories.